private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { myProgressDialog.Dispose(); mainForm.Opacity = 1; var user = e.Result as Entity_Staff; if (user == null) { Dialog_MyMessageBox.Show(Constant.INVALID_CREDENTIALS, 1, UiColors.MESSAGE_ERROR); } else if (!user.isAccountActive) { Dialog_MyMessageBox.Show(Constant.ACCOUNT_LOCKED, 1, UiColors.MESSAGE_ERROR); } else { mainForm.Hide(); Form_Home homeForm = new Form_Home(mainForm); homeForm.Show(); } resetPage(); }
public Form_RegisterCompanies(Form_Home homeform) { this.homeform = homeform; InitializeComponent(); }
public Form_ViewCompanies(Form_Home homeform) { this.homeform = homeform; InitializeComponent(); }
public Form_Statistics(Form_Home homeform) { this.homeform = homeform; InitializeComponent(); }
public Form_ViewAllStudents(Form_Home homeform) { this.homeform = homeform; InitializeComponent(); }
public Form_Notification(Form_Home homeform) { InitializeComponent(); this.homeform = homeform; }
public Control_Settings1(Form_Home homeForm) { this.homeForm = homeForm; InitializeComponent(); }
public Control_Home(Form_Home homeform) { this.homeform = homeform; InitializeComponent(); }
public Form_UpdatePlacementStatus(Form_Home homeform) { this.homeform = homeform; studentManager = new StudentManagerImpl(); InitializeComponent(); }