Beispiel #1
0
 void AddClick(object sender, EventArgs e)
 {
     using (promotion_manage managePage = new promotion_manage())
     {
         managePage.Owner           = this;
         managePage.manage_btn.Text = "ADD";
         managePage.ShowDialog();
     }
 }
Beispiel #2
0
 void EditClick(object sender, EventArgs e)
 {
     using (promotion_manage managePage = new promotion_manage())
     {
         managePage.Owner           = this;
         managePage.manage_btn.Text = "UPDATE";
         GF.selected_id             = Convert.ToInt32(btn_dgv.DGV.SelectedRows[0].Cells["promotion_id"].Value);
         managePage.ShowDialog();
     }
 }