Example #1
0
 private void Btn_view_edit_Click(object sender, EventArgs e)
 {
     using (Form_organisation dlg = new Form_organisation(_org_id))
     {
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             Setup_form();
         }
     }
 }
Example #2
0
 private void Add_organisation()
 {
     using (Form_organisation formOrg = new Form_organisation())
     {
         if (formOrg.ShowDialog() == DialogResult.OK)
         {
             Setup_grd_main(formOrg.OrganisationID);
         }
     }
 }
Example #3
0
        private void Edit_organisation()
        {
            if (grd_main.SelectedCells.Count == 0)
            {
                return;
            }

            int int_org = (int)grd_main.SelectedCells[0].OwningRow.Cells["organisation"].Value;

            using (Form_organisation dlg = new Form_organisation(int_org))
            {
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    Setup_grd_main(int_org);
                }
            }
        }