Exemple #1
0
 private void cmdAdd_Click(object sender, EventArgs e)
 {
     Master.frmAppSettingUpdate ifrmChild = new Master.frmAppSettingUpdate(this);
     ifrmChild.MdiParent = Program.MainForm;
     Program.MainForm.RegisterChild(ifrmChild);
     ifrmChild.Show();
 }
Exemple #2
0
 private void cmdEdit_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedCells.Count > 0)
     {
         Guid rowid = new Guid(dataGridView1.SelectedCells[0].OwningRow.Cells["RowID"].Value.ToString());
         Master.frmAppSettingUpdate ifrmChild = new Master.frmAppSettingUpdate(this, rowid);
         ifrmChild.MdiParent = Program.MainForm;
         Program.MainForm.RegisterChild(ifrmChild);
         ifrmChild.Show();
     }
     else
     {
         MessageBox.Show(Messages.Error.RowNotSelected);
     }
 }