10 2019 档案

摘要: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 阅读(266) 评论(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 阅读(111) 评论(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 阅读(646) 评论(0) 推荐(0) 编辑
摘要:1.Install latest Chrome,Selenium.WebDriver, ChromeDriver Selenium.WebDriver 3.141.0; Selenium.WebDriver.ChromeDriver 78.0.3904.7000; Google Chrome Ver 阅读全文
posted @ 2019-10-27 15:43 FredGrit 阅读(260) 评论(0) 推荐(0) 编辑
摘要:static void GetAllFiles() { string path = "filepath"; var allFiles = Directory.GetFiles(path); string fileName = "file.txt"; using (FileStream fStream = File.Create(fileName)) { } using (FileStream fS 阅读全文
posted @ 2019-10-18 15:00 FredGrit 阅读(127) 评论(0) 推荐(0) 编辑
摘要:private void WriteLoginJsonData(object jsonData) { using (FileStream writerFileStream = new FileStream(JsonDataFile, FileMode.OpenOrCreate)) { using... 阅读全文
posted @ 2019-10-12 11:15 FredGrit 阅读(302) 评论(0) 推荐(0) 编辑
摘要:Wpf file embeded resource will compile the file into the assembly and it will be readonly and can not be writable. While you set the file as Copy alwa 阅读全文
posted @ 2019-10-11 16:41 FredGrit 阅读(279) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="DualMonitors.Views.WinLeft" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft. 阅读全文
posted @ 2019-10-08 10:08 FredGrit 阅读(336) 评论(0) 推荐(0) 编辑
摘要:<Image Source="pack://application:,,,/Images/Folder-icon.png"/> <Image Source="pack://application:,,,/Assembly;component/Images/Folder-icon.png"/> <Im 阅读全文
posted @ 2019-10-06 19:04 FredGrit 阅读(392) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示