public void Load(string cmd) { ThreadManager.DisplayLoadingScreen(); staffManager = new StaffManager(); accManager = new StaffAccountManager(); switch (cmd) { case "Add": LoadAddForm(); break; case "Update": LoadUpdateForm(); break; case "View": LoadViewForm(); break; } LoadTheme(); LoadLanguage(); LoadRecommendData(); if (staff != null) { DisplayStaffInfo(); } ThreadManager.CloseLoadingScreen(); }
public LoginForm() { InitializeComponent(); accManager = new StaffAccountManager(); }