private void btn_ok_Click(object sender, EventArgs e)
        {
            try {
                //this.Focus(); //This just focuses on this item rather than textbox
                string input = textBox1.Text.Trim();
                Cursor.Current = Cursors.WaitCursor;
                if (input == "")
                {
                    //MessageBox.Show("Enter the input key");
                    return;//Enter values
                }

                //EditNodeLineForm ef = new EditNodeLineForm()
                frm.TemperatureInputPorcessForDevice(input);
                //MessageBox.Show("End");
                frm.LoadNodeAndLine();

                Cursor.Current = Cursors.Default;
                this.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show($"{ex.Message} \n Please select input, output and variable section in T3000 and retry!");
                this.Close();
            }
        }
Пример #2
0
        private void btn_ok_Click(object sender, EventArgs e)
        {
            try {
                string input = textBox1.Text.Trim();
                Cursor.Current = Cursors.WaitCursor;

                //EditNodeLineForm ef = new EditNodeLineForm()
                frm.TemperatureInputPorcessForDevice(input);
                //MessageBox.Show("End");
                frm.LoadNodeAndLine();

                Cursor.Current = Cursors.Default;
                this.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show($"{ex.Message} \n Please select input, output and variable section in T3000 and retry!");
                this.Close();
            }
        }