Пример #1
0
        private void Add_Click(object sender, EventArgs e)
        {
            TransactionForm transForm = new TransactionForm();

            transForm.MdiParent = this.ParentForm;
            transForm.Show();
        }
Пример #2
0
 private void Edit_Click(object sender, EventArgs e)
 {
     foreach (DataGridViewRow row in this.dataGridView1.SelectedRows)
     {
         Transaction trans = row.DataBoundItem as Transaction;
         if (trans != null)
         {
             TransactionForm transForm = new TransactionForm(trans);
             transForm.MdiParent = this.ParentForm;
             transForm.Show();
         }
     }
 }