static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); EmployeeManagerSingleton employeeManager = new EmployeeManagerSingleton(); Application.Run(new RootForm(employeeManager)); }
public EmployeeSalaryDisplay(Form previousForm, EmployeeManagerSingleton manager) { InitializeComponent(); this.CenterToScreen(); this.whereICameFrom = previousForm; this.employeeManager = manager; this.linkToNewEmployee = false; displayAllEmployees(); }
public NewEmployeeInfoForm(Form previousForm, EmployeeManagerSingleton manager) { InitializeComponent(); this.CenterToScreen(); this.employeeManager = manager; this.whereICameFrom = previousForm; this.salaryTypeComboBox.SelectedIndex = 0; this.firstLabel.Hide(); this.firstBox.Hide(); this.secondLabel.Hide(); this.secondBox.Hide(); this.thirdLabel.Hide(); this.thirdBox.Hide(); }
public RootForm(EmployeeManagerSingleton employeeManager) { InitializeComponent(); this.CenterToScreen(); this.theManager = employeeManager; }