摘要: 本文关键字: 多窗口切换 label splitContainer 窗口背景颜色设置 字体设置 窗口布局 按钮事件 按钮 新建项目: 开发MainForm: MainForm先添加1个splitContainer,然后splitContainer.Panel1添加3个按钮,分别是button1,bu 阅读全文
posted @ 2024-01-30 10:56 Stephen_Young 阅读(961) 评论(0) 推荐(0) 编辑
摘要: 碧波往事 ————公元二零二肆年 于 深圳 碧波荡漾岸逶迤, 春风未至山凄凄。 往事回首接不住, 时光依旧往前移。 ————————————————————————————————————————————————————— 阅读全文
posted @ 2024-01-29 09:21 Stephen_Young 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 第一种:直接调用,通过invoke方法; 第二种:这是第二种将委托作为方法的参数的间接调用; 下面举个栗子演示: using System; using System.Collections.Generic; namespace TestDelegate { delegate int DeleInv 阅读全文
posted @ 2024-01-15 16:36 Stephen_Young 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 这么多年,你增长了你的年龄,却并没有升华你的心灵。 这么多年,你增长了你的知识,却并没有增加你的见识。 这么多年,你认识了那么多的人,却没一个能跟你一起数星星。 这么多年,你紧了你的衣服,也紧了你的梦。 阅读全文
posted @ 2023-12-21 11:31 Stephen_Young 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1 例程代码: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; name 阅读全文
posted @ 2023-11-22 23:11 Stephen_Young 阅读(21) 评论(0) 推荐(0) 编辑
摘要: C#开发一个可被带参数调用并返回数据的控制台应用程序 1 标准输出流控制台程序: namespace ReturnConsoleWrite { class Program { static void Main(string[] args) { //程序功能:将所以应用程序输入参数连成一个字符串 string _output=null; for (int 阅读全文
posted @ 2023-11-10 16:35 Stephen_Young 阅读(147) 评论(0) 推荐(0) 编辑
摘要: C#——接口 先来看看微软官方对接口的定义与说明。 接口定义协定。 实现接口的类或结构必须遵循它的协定。 接口可以从多个基接口继承,类或结构可以实现多个接口。 接口可以包含方法、属性、事件和索引器。 接口本身不提供它定义的成员的实现。 接口仅指定实现接口的类或结构必须提供的成员。 对于这种官方的文档,我相信大部分 阅读全文
posted @ 2023-11-10 13:44 Stephen_Young 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 不废话,直接贴上要实现的效果和代码... 【1】直接使用Lambda表达式是实现多线程: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Thread 阅读全文
posted @ 2023-11-03 14:56 Stephen_Young 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 类、事件与对象---Dad&Mom&Friends(进阶事件) 接上一个笔记:https://www.cnblogs.com/StephenYoung/p/17792668.html 现在增加了一个新的朋友类:Friends 这个类构造如下: 从上到下依次是: 1、字段名称、 2、要离开的事件、 3、方法--离开主人家、 4、Friends构造函数(方法)、 5 阅读全文
posted @ 2023-10-27 17:31 Stephen_Young 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 类、事件与对象---Dad&Mom简单练习 目的: 模拟一个家庭日常发生的场景:妈妈做好饭,说:“开饭了!”,这是爸爸听到了妈妈的喊话就立马动身开始饭吃。而儿子此时正在打游戏,于是他就说:“等我打完这把游戏再吃!”。 借由次例子来展示C#的事件,加深对它的理解与运用。 一、新建3个对象:分别是Dad,Mom,Son; Mom class有一个 阅读全文
posted @ 2023-10-27 16:27 Stephen_Young 阅读(25) 评论(0) 推荐(0) 编辑

喜欢请打赏

扫描二维码打赏

微信打赏

点击右上角即可分享
微信分享提示