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); } }
public LocationAllocateRemoveBase(StaffLocationAllocation staffLocationAllocation, Staff staff) { _staffLocationAllocation = staffLocationAllocation; _staff = staff; populateLocations(); }
public LocationAllocate(StaffLocationAllocation staffWorkCentreAllocation, Staff staff) : base(staffWorkCentreAllocation, staff) { }