Пример #1
0
        private void bAdd_Click(object sender, EventArgs e)
        {
            AddEditPoints points = new AddEditPoints();

            points.ShowInTaskbar = false;
            points.FormClosing  += Points_FormClosing;
            points.ShowDialog();
        }
Пример #2
0
 private void bEdit_Click(object sender, EventArgs e)
 {
     if (code != null)
     {
         AddEditPoints points = new AddEditPoints(code);
         points.ShowInTaskbar = false;
         points.FormClosing  += Points_FormClosing;
         points.ShowDialog();
     }
     else
     {
         MessageBox.Show("Требуется выбрать строку в таблице", "Ошибка");
     }
 }