Fork me on Github
上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: 1.创建消息事件类,继承发布订阅事件类 PubSubEvent /// <summary> /// 发布订阅 消息事件类 /// </summary> public class MsgEvent : PubSubEvent<string> { } 2.获取事件聚合器 IEventAggregator 阅读全文
posted @ 2025-05-14 22:12 昂昂呀 阅读(48) 评论(0) 推荐(0)
摘要: 一.注册对话框 /// <summary> /// 注入服务 /// </summary> /// <param name="containerRegistry"></param> /// <exception cref="NotImplementedException"></exception> 阅读全文
posted @ 2025-05-13 23:08 昂昂呀 阅读(390) 评论(0) 推荐(0)
摘要: using OfficeOpenXml; // 写入到 Excel 文件 string filePath = "C:\\Users\\Administrator\\Desktop\\output.xlsx"; ExcelPackage.License.SetNonCommercialPersonal 阅读全文
posted @ 2025-05-12 23:10 昂昂呀 阅读(75) 评论(0) 推荐(0)
摘要: 一、导航中传递参数 1.通过NavigationParameters中的Add方法,以键值对的方式传递参数 /// <summary> /// 改变显示用户控件 /// </summary> /// <param name="ViewName"></param> private void ShowC 阅读全文
posted @ 2025-05-12 22:14 昂昂呀 阅读(100) 评论(0) 推荐(0)
摘要: 一、添加引入导入(不推荐) 1.将要导入模块的输出类型改为类库 2.添加要导入模块的配置文件 public class ModuleAProfile : IModule { public void OnInitialized(IContainerProvider containerProvider) 阅读全文
posted @ 2025-05-11 18:39 昂昂呀 阅读(62) 评论(0) 推荐(0)
摘要: MainView.xaml <Grid> <Grid.RowDefinitions> <RowDefinition Height="30" /> <RowDefinition /> </Grid.RowDefinitions> <StackPanel Orientation="Horizontal" 阅读全文
posted @ 2025-04-21 11:13 昂昂呀 阅读(55) 评论(0) 推荐(0)
摘要: public class ObservableObject : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; public void RaisePropertyChanged([C 阅读全文
posted @ 2025-04-21 10:39 昂昂呀 阅读(31) 评论(0) 推荐(0)
摘要: 一、DelegateCommand<T>(推荐) public class DelegateCommand : ICommand { public event EventHandler CanExecuteChanged; private Action action; public Delegate 阅读全文
posted @ 2025-04-21 10:38 昂昂呀 阅读(33) 评论(0) 推荐(0)
摘要: 1.Ads连接 /// <summary> /// 摘要:打开ADS连接,无参数 /// </summary> /// <returns>返回是否成功连接结果bool</returns> public bool ADSConn() { try { //连接ADS adsClient.Connect( 阅读全文
posted @ 2025-04-14 14:27 昂昂呀 阅读(50) 评论(0) 推荐(0)
摘要: DiskPart 是 Windows 中的一个命令行实用程序,用于管理磁盘驱动器、分区和卷。 diskpart:启动 DiskPart 命令行工具的命令。 list disk:列出计算机上所有可用的磁盘驱动器。 select disk n:选择要操作的磁盘驱动器,其中 "n" 应该替换为您要选择的磁 阅读全文
posted @ 2023-09-12 22:02 昂昂呀 阅读(115) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 11 下一页