原创 C#xml的一些簡單處理0.0增刪改查及放入listview

 前臺xaml頁面 <Window x:Class="WpfApplication6.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/pre

原创 多線程 彩票小程序

多線程 彩票小程序 //控制線程數組啓動/停止 bool isRun = false; //控制label中隨機數字變化的線程數組 Thre

原创 簡單的socket通訊

首先服務端 using System; using System.Collections.Generic; using System.Linq; using System.Text; using Syst

原创 常用的排序方法

1.冒泡法排序 int tmp = 0; for (int i = 0; i < arrI.Length - 1; i++) {

原创 C#一些集合或者泛型的使用

1.Arraylist //直接獲取數組中的元素並且輸出 int[] arrI = { 1, 2, 3, 4, 5, 6 }; Array myArray

原创 委託和事件

委託和事件事例 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespa

原创 關於數據庫的一些操作

1.關於用戶的操作 --註冊windows登陸帳號 exec sp_grantlogin 'niit8-2\pl' exec sp_droplogin 'niit8-2\pl' --創建角色 exec

原创 xmlHttpRequest

用戶名 密  碼

原创 自己寫的一個對於數組的操作方法

首先,本方法需要傳入一個委託和一個數組 using System; using System.Collections.Generic; using System.Linq; using System.Te

原创 泛型集合

1.Dictionary Dictionary Dic = new Dictionary(); Dic.Add(1, "張三");

原创 使用linq操控數組的一些小方法

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; names

原创 C#動態生成RadioButton

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing;

原创 簡單的linq to sql

首先,是使用實體層映射的方式去訪問。1.實體層定義 using System; using System.Collections.Generic; using System.Linq; using Sys

原创 將winform得到的bitmap格式的普片轉化成wpf image格式的圖片

BitmapSource GetBitmapSource(Bitmap _bitmap) { Rectangle destRect = new Rectangle(0, 0, (int)S

原创 簡單的文件操作

1.一些簡單的文件操作 /// /// 建立文件 /// /// /// ///