
C#
ChrisKyrie
这个作者很懒,什么都没留下…
展开
-
C#线程切换
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Threading;namespace ConsoleApplication1{ class Program { public static void print1() { .原创 2020-06-01 16:57:44 · 789 阅读 · 0 评论 -
WPF之TreeView查找节点
private void tbDeviceType_TextChanged(object sender, TextChangedEventArgs e) { #region 源代码 //if (tbDeviceType.Text == "") //{ // TreeViewT...原创 2019-12-27 09:52:19 · 1344 阅读 · 0 评论 -
C#读目录文件
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;namespace test{ public class demo { static void...原创 2019-11-13 16:42:34 · 204 阅读 · 0 评论 -
C#Main
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using demo;using demotest;namespace test{ public class demo { ...原创 2019-11-13 09:15:37 · 101 阅读 · 0 评论 -
C#读写xml文件
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Xml;namespace demo{ public class RwXml { public voi...原创 2019-11-13 08:45:53 · 138 阅读 · 0 评论 -
C#中DataGrid的数据Binding的使用
WPF中提供xaml文件跟后台的C#代码数据交换的一种新的方式,那就是Binding。流程如下:1、定义相应的类using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace WpfApp1{ ...原创 2019-11-12 16:47:34 · 358 阅读 · 0 评论 -
C#CRC检验码ha
private byte[] CRCHi = new byte[256]{0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x...原创 2019-10-30 16:21:37 · 247 阅读 · 0 评论 -
c#读二进制文件
using System;using System.IO;namespace test{ class demo { public void timeDelay(int iInterval) { DateTime now = DateTime.Now; while (now.AddMillise...原创 2019-10-28 13:23:45 · 355 阅读 · 0 评论 -
C#的定时函数
private void timeDelay(int iInterval){ DateTime now = DateTime.Now; while (now.AddMilliseconds(iInterval) > DateTime.Now) { } return;}原创 2019-10-22 16:09:15 · 423 阅读 · 0 评论 -
C#中的foreach
using System;namespace test{ class demo { static void Main(string[] args) { int[] buf = new int[] { 1, 2, 3 }; foreach (int num in buf) ...原创 2019-10-16 16:09:05 · 127 阅读 · 0 评论 -
C#输入输出
using System;namespace test{ class demo { static void Main(string[] args) { string input = Console.ReadLine(); int num = Convert.ToInt32(input); ...原创 2019-10-16 15:13:36 · 459 阅读 · 0 评论