コード例 #1
0
 private void addStaffToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         if (_saeb.Validated())
         {
             StaffLocationAllocation swa = new StaffLocationAllocation(_saeb.Staff, "allocate");
             {
                 swa.ShowDialog();
                 if (swa.DialogResult == DialogResult.OK)
                 {
                     _saeb.PopulateWorkCentres();
                     //btnUpdae.Enabled = true;
                 }
             }
         }
         else
         {
             this.tabControl1.SelectedIndex = 0;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
コード例 #2
0
 public LocationAllocateRemoveBase(StaffLocationAllocation staffLocationAllocation, Staff staff)
 {
     _staffLocationAllocation = staffLocationAllocation;
     _staff = staff;
     populateLocations();
 }
コード例 #3
0
 public LocationAllocate(StaffLocationAllocation staffWorkCentreAllocation, Staff staff) : base(staffWorkCentreAllocation, staff)
 {
 }