Esempio n. 1
0
 private void btnDetails_Click(object sender, EventArgs e)
 {
     if (DonateBloodGrid.SelectedRows.Count == 0)
     {
         MessageBox.Show("Please Select Specific Data First!");
     }
     else
     {
         DonateBloodEntry donorEntry = new DonateBloodEntry(this, "Details", this.donateId, this._branchId);
         donorEntry.ShowDialog();
     }
 }
Esempio n. 2
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (DonateBloodGrid.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)
         {
             DonateBloodEntry donorEntry = new DonateBloodEntry(this, "Update", this.donateId, this._branchId);
             donorEntry.ShowDialog();
         }
     }
 }
Esempio n. 3
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            DonateBloodEntry doneBloodEntry = new DonateBloodEntry(this, "Save", 0, this._branchId);

            doneBloodEntry.ShowDialog();
        }