/// <summary> /// timer action /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void timer1_Tick(object sender, EventArgs e) { SerialCom.GetStatus(OnDataReceived); // set max to now.. meh this.fc.dtmin.MaxDate = DateTime.Now; this.fc.dtmax.MaxDate = DateTime.Now; }
private void button2_Click(object sender, EventArgs e) { bool res = SerialCom.Connect((string)this.listBox1.SelectedItem); updateConnectStatus(); if (res) { Properties.Settings.Default.port = (string)this.listBox1.SelectedItem; Properties.Settings.Default.Save(); this.Close(); } }
public Form1() { InitializeComponent(); this.Icon = Icon.FromHandle(Properties.Resources.um24c2.GetHicon()); this.fc = this.ucFilter1.GetFilterConfig(); myDelegate = new UpdateChart(updatechart); Properties.Settings.Default.Reload(); if (!string.IsNullOrEmpty(Properties.Settings.Default.port)) { SerialCom.Connect(Properties.Settings.Default.port); } this.updateConnectStatus(); }
private void button8_Click(object sender, EventArgs e) { SerialCom.f6(); }
private void button6_Click(object sender, EventArgs e) { SerialCom.GroupClear(); }
private void button2_Click(object sender, EventArgs e) { SerialCom.GroupNext(); }
private void button4_Click(object sender, EventArgs e) { SerialCom.ScreenRotate(); }
private void button3_Click(object sender, EventArgs e) { SerialCom.ScreenNext(); }
private void button3_Click(object sender, EventArgs e) { SerialCom.Disconnect(); updateConnectStatus(); }