Beispiel #1
0
        private void btn_New_Click(object sender, EventArgs e)
        {
            AnalogInput ai = new AnalogInput(this, null);

            ai.StartPosition = FormStartPosition.Manual;
            ai.Location      = new Point(this.Location.X + (this.Width - ai.Width) / 2, this.Location.Y + (this.Height - ai.Height) / 2);
            ai.Show(this);
        }
Beispiel #2
0
        private void Btn_Copy_Click(object sender, EventArgs e)
        {
            AnalogSignal analogSignal = (AnalogSignal)dataGridView1.CurrentRow.DataBoundItem;

            AnalogInput ai = new AnalogInput(this, analogSignal);

            ai.StartPosition = FormStartPosition.Manual;
            ai.Location      = new Point(this.Location.X + (this.Width - ai.Width) / 2, this.Location.Y + (this.Height - ai.Height) / 2);
            ai.Show(this);
        }