コード例 #1
0
        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();
        }
コード例 #2
0
 public Form_RegisterCompanies(Form_Home homeform)
 {
     this.homeform = homeform;
     InitializeComponent();
 }
コード例 #3
0
 public Form_ViewCompanies(Form_Home homeform)
 {
     this.homeform = homeform;
     InitializeComponent();
 }
コード例 #4
0
 public Form_Statistics(Form_Home homeform)
 {
     this.homeform = homeform;
     InitializeComponent();
 }
コード例 #5
0
 public Form_ViewAllStudents(Form_Home homeform)
 {
     this.homeform = homeform;
     InitializeComponent();
 }
コード例 #6
0
 public Form_Notification(Form_Home homeform)
 {
     InitializeComponent();
     this.homeform = homeform;
 }
コード例 #7
0
 public Control_Settings1(Form_Home homeForm)
 {
     this.homeForm = homeForm;
     InitializeComponent();
 }
コード例 #8
0
 public Control_Home(Form_Home homeform)
 {
     this.homeform = homeform;
     InitializeComponent();
 }
コード例 #9
0
 public Form_UpdatePlacementStatus(Form_Home homeform)
 {
     this.homeform  = homeform;
     studentManager = new StudentManagerImpl();
     InitializeComponent();
 }