上一页 1 ··· 93 94 95 96 97 98 99 100 101 ··· 120 下一页
摘要: Dynamic object provides a base class for specifying dynamic behavior at runtime. public class DynamicObjectInvoker:DynamicObject { public override boo 阅读全文
posted @ 2020-09-08 23:33 FredGrit 阅读(172) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threadin 阅读全文
posted @ 2020-08-30 14:12 FredGrit 阅读(131) 评论(0) 推荐(0)
摘要: static void SetConfig(string userName,string userPwd,string isRemembered) { Configuration cfg=ConfigurationManager.OpenExeConfiguration(ConfigurationU 阅读全文
posted @ 2020-08-14 11:29 FredGrit 阅读(99) 评论(0) 推荐(0)
摘要: [DebuggerDisplay("Student:Id={StuId},Name={StuName}")] public class Student { public int StuId { get; set; } public string StuName { get; set; } } Gen 阅读全文
posted @ 2020-08-13 16:35 FredGrit 阅读(218) 评论(0) 推荐(0)
摘要: public class MsgBox : System.Windows.Forms.Form { Label bodyLabel = new Label(); Button yesBtn = new Button(); Button noBtn = new Button(); public Msg 阅读全文
posted @ 2020-08-13 11:55 FredGrit 阅读(167) 评论(0) 推荐(0)
摘要: 1.New Wpf project; 2.Add New Wpf Window named SubWindow; 3.Set global vairable via App.Current.Properties[objKey]=objValue in MainWindow constructor. 阅读全文
posted @ 2020-08-10 11:37 FredGrit 阅读(237) 评论(0) 推荐(0)
摘要: XAML: <Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft 阅读全文
posted @ 2020-07-24 23:30 FredGrit 阅读(586) 评论(0) 推荐(0)
摘要: While when DataGridComboBoxColumn binding to a class collection,for example it will bind to class country which has CountryName and CountryCode proper 阅读全文
posted @ 2020-07-23 21:36 FredGrit 阅读(302) 评论(0) 推荐(0)
摘要: <Button Name="button" Content="Hello" Height="100" Width="200" Click="button_Click_2"> <Button.ContentTemplate> <DataTemplate> <Viewbox> <TextBlock>My 阅读全文
posted @ 2020-07-21 11:50 FredGrit 阅读(313) 评论(0) 推荐(0)
摘要: using System.Configuration; static void Main(string[] args) { UpdateConfigAppSettings(); ReadConfig(); Console.ReadLine(); } static void UpdateConfigA 阅读全文
posted @ 2020-07-20 19:09 FredGrit 阅读(178) 评论(0) 推荐(0)
上一页 1 ··· 93 94 95 96 97 98 99 100 101 ··· 120 下一页