예제 #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);
        }