예제 #1
0
        /// <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;
        }
예제 #2
0
        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();
            }
        }
예제 #3
0
        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();
        }
예제 #4
0
 private void button8_Click(object sender, EventArgs e)
 {
     SerialCom.f6();
 }
예제 #5
0
 private void button6_Click(object sender, EventArgs e)
 {
     SerialCom.GroupClear();
 }
예제 #6
0
 private void button2_Click(object sender, EventArgs e)
 {
     SerialCom.GroupNext();
 }
예제 #7
0
 private void button4_Click(object sender, EventArgs e)
 {
     SerialCom.ScreenRotate();
 }
예제 #8
0
 private void button3_Click(object sender, EventArgs e)
 {
     SerialCom.ScreenNext();
 }
예제 #9
0
        private void button3_Click(object sender, EventArgs e)
        {
            SerialCom.Disconnect();

            updateConnectStatus();
        }