private void UpdatePlacementStatusForm_Load(object sender, EventArgs e)
        {
            Placement_Application.Components.Resolution res = new Placement_Application.Components.Resolution();
            res.ResizeForm(this, Common.form_height, Common.form_width);
            this.label_top_batch.Text = Utility.getConfigLabel();
            timer1.Start();
            timer1.Interval = 1000;

            startBackgroundThread(true);
        }
Beispiel #2
0
        private void ViewCompaniesForm_Load(object sender, EventArgs e)
        {
            Placement_Application.Components.Resolution res = new Placement_Application.Components.Resolution();
            res.ResizeForm(this, Common.form_height, Common.form_width);
            this.label_top_batch.Text = Utility.getConfigLabel();

            timer1.Start();
            timer1.Interval = 1000;
            compMap         = new Dictionary <string, Entity_CompanyDetails>();
            startBackgroundThread(true, 0);
        }
 private void Form_Notification_Load(object sender, EventArgs e)
 {
     Placement_Application.Components.Resolution res = new Placement_Application.Components.Resolution();
     res.ResizeForm(this, Common.form_height, Common.form_width);
     timer1.Start();
     timer1.Interval           = 1000;
     this.label_top_batch.Text = Utility.getConfigLabel();
     notification  = new Entity_Notification();
     notifyManager = new NotificationManagerImpl();
     resetButtonControls();
 }
        private void WelcomeForm_Load(object sender, EventArgs e)
        {
            Placement_Application.Components.Resolution res = new Placement_Application.Components.Resolution();
            res.ResizeForm(this, Common.form_height, Common.form_width);
            timer1.Start();
            timer1.Interval = 1000;
            Control_Welcome welcomeControl = new Control_Welcome();

            welcomeControl.Dock = DockStyle.Fill;
            panel_main.Controls.Add(welcomeControl);
        }
        private static void initialiseDialog()
        {
            dialogUpdatePlacementDetails = new Dialog_UpdateStudentCompany();
            Placement_Application.Components.Resolution res = new Placement_Application.Components.Resolution();
            res.ResizeForm(dialogUpdatePlacementDetails, Common.dialog_height, Common.dialog_width);

            dialogUpdatePlacementDetails.Opacity = Common.dialogOpacity;
            dialogUpdatePlacementDetails.dropdown_company.Focus();
            dialogUpdatePlacementDetails.isCompanyPresent = false;
            dialogUpdatePlacementDetails.getPossibleCompanies();
        }
        public static DialogResult Show()
        {
            dialogPwd = new Dialog_UpdatePassword();
            Placement_Application.Components.Resolution res = new Placement_Application.Components.Resolution();
            res.ResizeForm(dialogPwd, Common.dialog_height, Common.dialog_width);

            dialogPwd.Opacity = Common.dialogOpacity;
            dialogPwd.textBox_oldPassword.Focus();
            dialogPwd.ShowDialog();

            return(result);
        }
        public static DialogResult Show(String msg, int but_count, string backColor)
        {
            msgbox = new Dialog_MyMessageBox();
            Placement_Application.Components.Resolution res = new Placement_Application.Components.Resolution();
            res.ResizeForm(msgbox, Common.dialog_height, Common.dialog_width);

            msgbox.BackColor            = Utility.getColorFromHex(backColor);
            msgbox.Opacity              = Common.dialogOpacity;
            msgbox.label_mymessage.Text = msg;
            prepareButtons(but_count);
            msgbox.ShowDialog();
            return(result);
        }
Beispiel #8
0
        public static DialogResult Show()
        {
            dialogDB = new Dialog_ManageDB();
            Placement_Application.Components.Resolution res = new Placement_Application.Components.Resolution();
            res.ResizeForm(dialogDB, Common.dialog_height, Common.dialog_width);

            dialogDB.Opacity = Common.dialogOpacity;
            fileName         = string.Empty;
            dbOperation      = Constant.DB_INSERT_STUDENT_DATA;
            dialogDB.ShowDialog();

            return(result);
        }
Beispiel #9
0
        private void RegisterCompaniesForm_Load(object sender, EventArgs e)
        {
            Placement_Application.Components.Resolution res = new Placement_Application.Components.Resolution();
            res.ResizeForm(this, Common.form_height, Common.form_width);
            this.label_top_batch.Text = Utility.getConfigLabel();
            timer1.Start();
            timer1.Interval = 1000;

            dropdown_companyType.DataSource = Utility.setDropdownDataFromEnum(Constant.ENUM_COMPANY_TYPE);
            dropown_status.DataSource       = Utility.setDropdownDataFromEnum(Constant.ENUM_COMPANY_STATUS);

            dropdown_companyType.SelectedIndex = 0;
            dropown_status.SelectedIndex       = 0;

            dateTime_dor.MinDate = DateTime.Now.AddDays(1);
        }
Beispiel #10
0
        public static DialogResult Show(Entity_Staff user)
        {
            dialogUser = new Dialog_UpdateUser();
            Placement_Application.Components.Resolution res = new Placement_Application.Components.Resolution();
            res.ResizeForm(dialogUser, 580, 1050);
            dialogUser.StartPosition = FormStartPosition.CenterParent;

            dialogUser.Opacity = Common.dialogOpacity;
            isNewUser          = true;
            currentUser        = user;

            dialogUser.label_studentId.Text = Labels.ADD_USER;
            dialogUser.but_update.Text      = Labels.ADD;

            dialogUser.textBox_userName.Focus();
            dialogUser.ShowDialog();

            return(result);
        }
        private void Form_ViewAllStudents_Load(object sender, EventArgs e)
        {
            Placement_Application.Components.Resolution res = new Placement_Application.Components.Resolution();
            res.ResizeForm(this, Common.form_height, Common.form_width);

            this.label_top_batch.Text = Utility.getConfigLabel();
            timer1.Start();
            timer1.Interval = 1000;
            tooltip         = new ToolTip();

            isListPlacedLoaded    = false;
            isListNonPlacedLoaded = false;

            prepareListPlaced();
            prepareListNonPlaced();
            placedDetailsManager = new StudentPlacedManagerImpl();

            startBackgroundThread(true);
        }
Beispiel #12
0
        public static DialogResult Show(Entity_Staff user, bool forOtherUser)
        {
            dialogUser = new Dialog_UpdateUser();
            Placement_Application.Components.Resolution res = new Placement_Application.Components.Resolution();
            res.ResizeForm(dialogUser, Common.dialog_height, Common.dialog_width);

            dialogUser.Opacity = Common.dialogOpacity;
            currentUser        = user;
            isNewUser          = false;
            isAdminRequest     = forOtherUser;

            dialogUser.textBox_userName.Text = currentUser.staffName;
            dialogUser.textBox_email.Text    = currentUser.email;
            dialogUser.textBox_contact.Text  = currentUser.phone;

            dialogUser.textBox_userName.Focus();
            dialogUser.ShowDialog();

            return(result);
        }