private void btnDetails_Click(object sender, EventArgs e)
 {
     if (BranchesGrid.SelectedRows.Count == 0)
     {
         MessageBox.Show("Please Select Specific Data First!");
     }
     else
     {
         BranchForm branchForm = new BranchForm(this, this.branchId, "View");
         branchForm.ShowDialog();
     }
 }
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (BranchesGrid.SelectedRows.Count == 0)
     {
         MessageBox.Show("Please Select Specific Data First!");
     }
     else
     {
         DialogResult result1 = MessageBox.Show("Are You Want To Update This?", "Confirm!", MessageBoxButtons.YesNo);
         if (result1 == DialogResult.Yes)
         {
             BranchForm branchForm = new BranchForm(this, this.branchId, "Update");
             branchForm.ShowDialog();
         }
     }
 }
예제 #3
0
        private void btnOwnProfile_Click(object sender, EventArgs e)
        {
            BranchForm branchForm = new BranchForm(this, this._branchId, "View");

            branchForm.ShowDialog();
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            BranchForm branchForm = new BranchForm(this, 0, "Save");

            branchForm.ShowDialog();
        }