コード例 #1
0
        private void pictureBoxAdvertise_Click(object sender, EventArgs e)
        {
            this.Controls.Clear();
            ControlWelcome cc = new ControlWelcome();

            this.Controls.Add(cc);
            cc.Show();
            cc.Dock = DockStyle.Fill;
        }
コード例 #2
0
ファイル: UserView.cs プロジェクト: 5l4y3r/LabaidHealthKiosk
        private void UserView_Load(object sender, EventArgs e)
        {
            tableLayoutPanel.Controls.Clear();

            ControlWelcome cc = new ControlWelcome();

            tableLayoutPanel.Controls.Add(cc);
            cc.Show();
            cc.Dock = DockStyle.Fill;
        }
コード例 #3
0
        private void ComplainSubmitBtn_Click(object sender, EventArgs e)
        {
            string s  = textBoxComplain.Text;
            string s2 = "";

            if (radioDoctor.Checked)
            {
                s2 = "Doctor";
            }
            else if (radioNurse.Checked)
            {
                s2 = "Nurse";
            }
            else if (radioAccomo.Checked)
            {
                s2 = "Accomodation";
            }
            else if (radioBilling.Checked)
            {
                s2 = "Billing";
            }
            else if (radioHelpDesk.Checked)
            {
                s2 = "Help Desk";
            }

            if (s2 != "")
            {
                BusinessLayer.ComplainClass.SubmitComplain(uName, s2, s);

                DialogResult dialogResult = MessageBox.Show("Do you want to make another complain?", "Complain", MessageBoxButtons.YesNo);
                if (dialogResult == DialogResult.No)
                {
                    this.Controls.Clear();
                    ControlWelcome cc = new ControlWelcome();
                    this.Controls.Add(cc);
                    cc.Show();
                    cc.Dock = DockStyle.Fill;
                }
                else if (dialogResult == DialogResult.Yes)
                {
                    textBoxComplain.Text = "";
                }
            }
            else
            {
                MessageBox.Show("please select complain section");
            }
        }
コード例 #4
0
 private void NextPhase()
 {
     if (RatingQ1.Value > 0 && RatingQ2.Value > 0 && RatingQ3.Value > 0 && RatingQ4.Value > 0 &&
         RatingQ5.Value > 0 && RatingQ6.Value > 0 && RatingQ7.Value > 0 && RatingQ8.Value > 0 &&
         RatingQ9.Value > 0 && RatingQ10.Value > 0 && RatingQ11.Value > 0 && RatingQ12.Value > 0 &&
         RatingQ13.Value > 0 && RatingQ14.Value > 0 && RatingQ15.Value > 0 && RatingQ16.Value > 0 &&
         RatingQ17.Value > 0 && RatingQ18.Value > 0)
     {
         MessageBox.Show("Thank You For your time sir!");
         this.Controls.Clear();
         ControlWelcome cc = new ControlWelcome();
         this.Controls.Add(cc);
         cc.Show();
         cc.Dock = DockStyle.Fill;
     }
     else
     {
         MessageBox.Show("You are missing something");
     }
 }