Пример #1
0
 private void edit_item_btn_Click(object sender, EventArgs e)
 {
     using (program_item item_page = new program_item())
     {
         item_page.id = Int32.Parse(DGV.SelectedRows[0].Cells["spa_program_item_id"].Value.ToString());
         item_page.manage_btn.Text = "UPDATE";
         item_page.Owner           = this;
         item_page.ShowDialog();
     }
 }
Пример #2
0
 private void new_item_btn_Click(object sender, EventArgs e)
 {
     using (program_item item_page = new program_item())
     {
         item_page.id = -1;
         item_page.manage_btn.Text = "ADD";
         item_page.Owner           = this;
         item_page.ShowDialog();
     }
 }