Пример #1
0
Файл: Main.cs Проект: plats98/TI
        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);
        }
Пример #2
0
Файл: Main.cs Проект: plats98/TI
        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);
        }