上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 94 下一页
摘要: 1. Install-package naudio -v 1.9.0 2. using NAudio.Wave; 3. 阅读全文
posted @ 2019-11-19 18:43 FredGrit 阅读(216) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace ConsoleApp386 { class Program { static 阅读全文
posted @ 2019-11-19 11:29 FredGrit 阅读(269) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { WebRequestDemoAsync(); Console.ReadLine(); } static async void WebRequestDemoAsync() { string url = "https://docs.mi 阅读全文
posted @ 2019-11-12 17:18 FredGrit 阅读(260) 评论(0) 推荐(0) 编辑
摘要: static void MutexDemo2() { string assName = Assembly.GetEntryAssembly().FullName; bool createdNew; using (var mutex = new Mutex(false, assName, out createdNew)) { if (!createdNew) { Console.WriteLine( 阅读全文
posted @ 2019-11-11 13:33 FredGrit 阅读(261) 评论(0) 推荐(0) 编辑
摘要: I had validated this.To download SSMS which is more than 500M+ static void Main(string[] args) { string url = "https://go.microsoft.com/fwlink/?linkid=2108895&clcid=0x409"; DownloadBigFile(new Uri 阅读全文
posted @ 2019-11-10 14:02 FredGrit 阅读(430) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { Task firstTask = Task.Run(() => { PrintPlus(); }); Task secondTask = firstTask.C... 阅读全文
posted @ 2019-11-09 21:09 FredGrit 阅读(1099) 评论(0) 推荐(0) 编辑
摘要: 1 using System.Windows.Media; 2 using Newtonsoft.Json; 3 using System.ComponentModel; 4 5 namespace ConsoleApp378 6 { 7 class Program:INotifyPropertyChanged 8 { 9 s... 阅读全文
posted @ 2019-11-02 20:58 FredGrit 阅读(409) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { SystemTimersDemo(); Console.ReadLine(); } static void SystemTimersDemo() { System.Timers.Timer timer = new System.Timers.Timer(1000); timer.Elapsed += Timer_Elapsed; 阅读全文
posted @ 2019-10-31 11:46 FredGrit 阅读(264) 评论(0) 推荐(0) 编辑
摘要: static void ImageMSDemo(string picPath) { byte[] imageArray = System.IO.File.ReadAllBytes(picPath); string base64ImageRepresentation = Convert.ToBase64String(imageArra... 阅读全文
posted @ 2019-10-28 18:52 FredGrit 阅读(110) 评论(0) 推荐(0) 编辑
摘要: <ListView x:Name="lv"> <ListView.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Vertical"/> </ItemsPanelTemplate> </ListView.ItemsPanel> <ListView.ItemTemplate> <DataTemplate> <StackPanel> 阅读全文
posted @ 2019-10-27 15:44 FredGrit 阅读(642) 评论(0) 推荐(0) 编辑
上一页 1 ··· 77 78 79 80 81 82 83 84 85 ··· 94 下一页