摘要: 1、超时命令 @echo offtimeout /nobreak /t 10 > nul 阅读全文
posted @ 2020-09-10 09:46 孤獨龍 阅读(151) 评论(0) 推荐(0) 编辑
摘要: List 或 Dictionary值如果是类对象,那么要在类中实现IEquatable相关接口 public class Seat : IEquatable<Seat> { #region Field #endregion #region Property /// <summary> /// 名称 阅读全文
posted @ 2020-05-22 17:23 孤獨龍 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 1、List List<string> temp = new List<string>(); foreach (PlayAgentItem arg in PlayAgentConfigSection.values.Cast<PlayAgentItem>()) { temp.Add(arg.IpAdd 阅读全文
posted @ 2020-05-22 13:56 孤獨龍 阅读(254) 评论(0) 推荐(0) 编辑
摘要: //把图片设置为Border的背景<Grid Width="973" Height="688"> <Border Name="Image_Game" Width="973" Height="688" BorderBrush="#FF2B9EC5" BorderThickness="4" Corner 阅读全文
posted @ 2020-05-20 16:01 孤獨龍 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 被这个问题困扰了2天,最后发现原因竟然是编译器设置问题,着实令人郁闷不已啊。 解决方法就是设置项目属性的平台目标为x86就行了,默认为(Any CPU). 阅读全文
posted @ 2020-05-12 21:44 孤獨龍 阅读(951) 评论(0) 推荐(0) 编辑
摘要: 从字符串到画刷: var converter = new System.Windows.Media.BrushConverter(); var brush = (Brush)converter.ConvertFromString("#FFFFFF90"); Fill = brush;(Color)C 阅读全文
posted @ 2019-12-05 09:01 孤獨龍 阅读(424) 评论(0) 推荐(0) 编辑
摘要: MouseButtonEventArgs args = new MouseButtonEventArgs(Mouse.PrimaryDevice,0, MouseButton.Left); args.RoutedEvent = UIElement.MouseLeftButtonDownEvent; btn.RaiseEvent(args); 阅读全文
posted @ 2019-11-18 16:50 孤獨龍 阅读(630) 评论(0) 推荐(0) 编辑
摘要: 1.System.Windows.Forms.SendKeys 组合键:Ctrl = ^ 、Shift = + 、Alt = % 模拟按键:A private void button1_Click(object sender, EventArgs e) { textBox1.Focus(); Sen 阅读全文
posted @ 2019-10-17 18:16 孤獨龍 阅读(3310) 评论(0) 推荐(0) 编辑
摘要: 说明: msdn中 ObservableCollection<T> 类 表示一个动态数据集合,在添加项、移除项或刷新整个列表时,此集合将提供通知。 在许多情况下,所使用的数据是对象的集合。 例如,数据绑定中的一个常见方案是使用 ItemsControl(如 ListBox、ListView 或 Tr 阅读全文
posted @ 2019-03-25 01:37 孤獨龍 阅读(595) 评论(0) 推荐(1) 编辑
摘要: 报如下错误, 解决方法:打开项目文件,修改 打开项目文件修改:<Deterministic>true</Deterministic> 为:<Deterministic>false</Deterministic> 阅读全文
posted @ 2019-03-06 20:11 孤獨龍 阅读(2532) 评论(0) 推荐(0) 编辑