Exemplo n.º 1
0
 private void BtnNew_Click(object sender, EventArgs e)
 {
     CompanyForm Form = new CompanyForm();
     Form.MdiParent = this.MdiParent;
     Form._parent = this;
     Form.Show();
 }
Exemplo n.º 2
0
 private void BtnSelect_Click(object sender, EventArgs e)
 {
     if (GVCompany.SelectedRows.Count == 0)
         MessageBox.Show("Row is not selected.", Classes.Messages.TTLDefault);
     else
     {
         int SelectedRow = Convert.ToInt32(GVCompany.SelectedRows[0].Cells["comid"].Value);
         CompanyForm Form = new CompanyForm(SelectedRow);
         Form._parent = this;
         Form.MdiParent = this.MdiParent;
         Form.Show();
     }
 }