摘要:
private void timer1_Tick_1(object sender, EventArgs e) { //开辟新线程,不占用主线程 Thread t = new Thread(new ThreadStart(delegate { timer1.Stop(); while (true) { Console.WriteLine("in timer1_Tick_1"); if (result.Count >= number) { Console.WriteLine("result.Count = " + result.Count); Cons 阅读全文
摘要:
http://bbs.51cto.com/topic/thread-874715.html 阅读全文
摘要:
可以直接在父窗口定义一个字段为子窗口;使用子窗口的时候就初始化,用完关闭。 阅读全文
摘要:
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (dataGridView1.Columns[e.ColumnIndex].CellType.Name == "DataGridViewCheckBoxCell") { //Console.WriteLine(dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Valu... 阅读全文
摘要:
private void AddHeaderCheckBox() { HeaderCheckBox = new CheckBox(); HeaderCheckBox.Size = new Size(20, 20); dataGridView1.Controls.Add(HeaderCheckBox); } private void HeaderCheckBox_MouseClick(object sender, MouseEventArgs e) { Heade... 阅读全文
摘要:
rowHeadersVisible = false; 阅读全文
摘要:
变换分类根据原信号的不同类型,我们可以把傅立叶变换分为四种类别:1非周期性连续信号傅立叶变换(Fourier Transform)2周期性连续信号傅立叶级数(Fourier Series)3非周期性离散信号离散时域傅立叶变换(Discrete Time Fourier Transform)4周期性离散信号离散傅立叶变换(Discrete Fourier Transform)把长度有限的信号表示成长度无限的信号,可以把信号无限地从左右进行延伸,延伸的部分用零来表示,这样,这个信号就可以被看成是非周期性离解信号,我们就可以用到离散时域傅立叶变换的方法。把信号用复制的方法进行延伸,这样信号就变成了周 阅读全文
摘要:
public static void Serialize(T entity) { TextWriter tw = new StringWriter(); var formatter = new XmlSerializer(typeof(T)); formatter.Serialize(tw, entity); if (!Directory.Exists(Path.GetDirectoryName(Filename))) { Director... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.Win32;namespace AirPatientForm{ class RegistryDAO { public static string GetRegistData(string name) { if (!IsRegeditExit(name)) { CreateRegedit(@... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using AirPatientForm;using AirwayCT.Entity;namespace BuildPatients{ public partial class Form1 : Form { public ... 阅读全文