Пример #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (DGVCollection.Rows.Count > 0)
            {
                string collID = DGVCollection.SelectedCells[0].OwningRow.Cells["CollectorID"].Value.ToString();

                AKC.frmCollectorUpdate ifrmChild = new AKC.frmCollectorUpdate(this, collID);
                Program.MainForm.RegisterChild(ifrmChild);
                ifrmChild.ShowDialog();
            }
        }
Пример #2
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     AKC.frmCollectorUpdate ifrmChild = new AKC.frmCollectorUpdate(this);
     Program.MainForm.RegisterChild(ifrmChild);
     ifrmChild.ShowDialog();
 }