Exemplo n.º 1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     EmployeeManagerSingleton employeeManager = new EmployeeManagerSingleton();
     Application.Run(new RootForm(employeeManager));
 }
Exemplo n.º 2
0
 public EmployeeSalaryDisplay(Form previousForm, EmployeeManagerSingleton manager)
 {
     InitializeComponent();
     this.CenterToScreen();
     this.whereICameFrom = previousForm;
     this.employeeManager = manager;
     this.linkToNewEmployee = false;
     displayAllEmployees();
 }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
 public RootForm(EmployeeManagerSingleton employeeManager)
 {
     InitializeComponent();
     this.CenterToScreen();
     this.theManager = employeeManager;
 }