摘要: 做一个ModuleA与ModuleB之间的通信 1.新建一个ModuleA: ViewAViewModel public class ViewAViewModel:BindableBase { IEventAggregator _ea; private string _message="defaul 阅读全文
posted @ 2020-04-05 22:19 当年小清新 阅读(1035) 评论(0) 推荐(0) 编辑
摘要: 将Prism.Wpf更新至7.2版本 新增一个Class Library作为一个Mudule,在Module下添加Views文件夹,Views文件夹里添加UserControl ViewC,再添加一个类TestClass,如图: TestClass 继承IModule接口: public class 阅读全文
posted @ 2020-04-05 10:05 当年小清新 阅读(904) 评论(0) 推荐(0) 编辑
摘要: 客户端: public partial class Form1 : Form { Socket myClientSocket; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, Event 阅读全文
posted @ 2020-03-29 18:31 当年小清新 阅读(206) 评论(0) 推荐(0) 编辑
摘要: . CancellationTokenSource tokenSource; CancellationToken token; ManualResetEvent resetEvent; public Form1() { InitializeComponent(); tokenSource = new 阅读全文
posted @ 2020-03-28 18:52 当年小清新 阅读(1082) 评论(0) 推荐(0) 编辑
摘要: ref与out的作用我们都知道,区别在于使用out时必须在方法里先给参数赋值。 阅读全文
posted @ 2020-03-26 19:59 当年小清新 阅读(235) 评论(0) 推荐(0) 编辑