随笔分类 -  C#

摘要:public partial class index : INotifyPropertyChanged { public index() { InitializeComponent(); DataContext = this; } private string _userName; public s 阅读全文
posted @ 2024-11-20 10:39 长安626 阅读(25) 评论(0) 推荐(0)
摘要:<Style x:Key="TransparentButton" TargetType="Button"> <Setter Property="Background" Value="Transparent"/> <Setter Property="BorderThickness" Value="0" 阅读全文
posted @ 2024-11-11 11:37 长安626 阅读(69) 评论(0) 推荐(0)
摘要:WindowStartupLocation="CenterScreen" 添加此段代码即可 阅读全文
posted @ 2024-10-07 16:50 长安626 阅读(107) 评论(0) 推荐(0)
摘要:原文链接:https://www.cnblogs.com/lg-lg/articles/17803347.html 开源.net 混淆器ConfuserEx介绍 下载地址:https://github.com/yck1509/ConfuserEx/releases 第一步: 第二步: 第三步: 当日 阅读全文
posted @ 2024-09-04 14:22 长安626 阅读(116) 评论(0) 推荐(0)
摘要:``` //// 将 Timer 定义为类的成员变量 private Timer myTimer; //点击响应触发器 private void uiSwitch1_ValueChanged(object sender, bool value) { if (uiSwitch1.Active) // 阅读全文
posted @ 2024-09-03 16:38 长安626 阅读(56) 评论(0) 推荐(0)
摘要:引用 using System.Data.SqlClient; // 创建连接字符串 string connectionString = $"Server={ip},{port};Database={database};User Id={username};Password={password};" 阅读全文
posted @ 2024-09-03 15:26 长安626 阅读(15) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Configuration; using System.IO; using System.Reflection; class Program { static void Main 阅读全文
posted @ 2024-09-03 09:59 长安626 阅读(51) 评论(0) 推荐(0)
摘要:在 App.xaml配置HandyControl,一个是皮肤资源,一个是主题资源 完整代码: ` <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDiction 阅读全文
posted @ 2024-08-28 13:49 长安626 阅读(110) 评论(0) 推荐(0)