Exemplo n.º 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();
        }
Exemplo n.º 2
0
 public Form_RegisterCompanies(Form_Home homeform)
 {
     this.homeform = homeform;
     InitializeComponent();
 }
Exemplo n.º 3
0
 public Form_ViewCompanies(Form_Home homeform)
 {
     this.homeform = homeform;
     InitializeComponent();
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 7
0
 public Control_Settings1(Form_Home homeForm)
 {
     this.homeForm = homeForm;
     InitializeComponent();
 }
Exemplo n.º 8
0
 public Control_Home(Form_Home homeform)
 {
     this.homeform = homeform;
     InitializeComponent();
 }
 public Form_UpdatePlacementStatus(Form_Home homeform)
 {
     this.homeform  = homeform;
     studentManager = new StudentManagerImpl();
     InitializeComponent();
 }