摘要: 例子 https://jingyan.baidu.com/article/93f9803f7ab544e0e46f55e6.html //创建页面大小 Rectangle pageSize = new Rectangle(1000,500); Document document = new Docu 阅读全文
posted @ 2020-09-02 13:53 AetlySaber 阅读(132) 评论(0) 推荐(0)
摘要: using System;using System.IO;using System.Text;namespace LearnFileStream{ class Program { string path = @"E:\AdvanceCSharpProject\LearnCSharp\LearnFil 阅读全文
posted @ 2020-09-02 09:38 AetlySaber 阅读(138) 评论(0) 推荐(0)
摘要: //以字符串为下标的索引器 public class IDXer2 { private Hashtable name = new Hashtable(); //以字符串为下标的索引器 public string this[string index] { get { return name[index 阅读全文
posted @ 2020-09-01 15:40 AetlySaber 阅读(110) 评论(0) 推荐(0)
摘要: 简易: MD5 md=MD5.Create(); byte[] by = Encoding.Default.GetBytes(tbox1.Text); byte[] by2= md.ComputeHash(by); string s = ""; for (int i = 0; i < by2.Len 阅读全文
posted @ 2020-08-31 10:47 AetlySaber 阅读(101) 评论(0) 推荐(0)
摘要: 普通: private void Button_Click(object sender, RoutedEventArgs e) { Person person = new Person(); person.age = 18; person.name = "gg"; FileStream stream 阅读全文
posted @ 2020-08-31 10:45 AetlySaber 阅读(70) 评论(0) 推荐(0)
摘要: 创建线程 Thread run方法是他要执行的 start是启动但不是立即执行 取决于cpu ThreadStart childref = new ThreadStart(线程执行的方法); Thread childThread = new Thread(childref); childThread 阅读全文
posted @ 2020-08-31 10:41 AetlySaber 阅读(120) 评论(0) 推荐(0)
摘要: 一个http请求的工具类 using Newtonsoft.Json.Linq;using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Net;using System. 阅读全文
posted @ 2020-08-31 10:24 AetlySaber 阅读(304) 评论(0) 推荐(0)
摘要: ObservableCollection<CompanyData> infos = new ObservableCollection<CompanyData>() { }; 声明一个动态集合,让list view的ItemsSource=这个集合 拿到所选项的某个值放在textbox里 Textbo 阅读全文
posted @ 2020-08-31 10:17 AetlySaber 阅读(198) 评论(0) 推荐(0)
摘要: public static Dictionary<string, Uri> allViews = new Dictionary<string, Uri>();//定义个一个导航字典 =(frame的name) MainPage.NavigationUIVisibility = System.Wind 阅读全文
posted @ 2020-08-31 10:14 AetlySaber 阅读(266) 评论(0) 推荐(0)