Esempio n. 1
0
        private void BtnDetails_Click(object sender, EventArgs e)
        {
            bool flag = true;

            if (this.email != null)
            {
                HiringRequest hrForm = new HiringRequest(this.username, this.firstName, this.lastName, this.hourlyWage, this.departmentId, this.contractStartDate, this.phoneNumber, this.email);
                hrForm.Show();
            }
            else
            {
                FiringRequest frForm = new FiringRequest(flag, this.departmentId, this.username, this.firstName, this.lastName, this.description);
                frForm.Show();
            }
        }
Esempio n. 2
0
        private void BtnDetails_Click(object sender, EventArgs e)
        {
            bool flag = true;

            if (lblRequest.Text.Contains("Hiring"))
            {
                HiringRequest hrForm = new HiringRequest(this.username, this.firstName, this.lastName, this.hourlyWage, this.departmentId, this.contractStartDate, this.phoneNumber, this.email);
                hrForm.Show();
            }
            else if (lblRequest.Text.Contains("firing"))
            {
                FiringRequest frForm = new FiringRequest(flag, this.departmentId, this.username, this.firstName, this.lastName, this.description);
                frForm.Show();
            }
            else if (lblRequest.Text.Contains("Promotion"))
            {
                PromotionRequest prForm = new PromotionRequest(flag, this.departmentId, this.firstName, this.lastName, this.hourlyWage, this.previousHourlyWage);
                prForm.Show();
            }
        }