Exemplo n.º 1
0
        private void SubmitButton_Click(object sender, EventArgs e)
        {
            string username = UsernameBox.Text;
            string password = PasswordBox.Text;

            PasswordBox.Text = "";

            //temporary fake login as patient
            if (true)
            {
                PatientForm patientForm = new PatientForm();
                this.Hide();
                patientForm.Show();
            }
            else
            {
                DoctorForm doctorForm = new DoctorForm();
                this.Hide();
                doctorForm.Show();
            }

            //TO DO
            // add way to check if correct username or password
            // and if doctor or patient

            /*
             * if (patient)
             * {
             *  PatientForm patientForm = new PatientForm();
             *  this.Hide();
             *  patientForm.Show();
             * }
             * //else if (doctor)
             * {
             *  DoctorForm doctorForm = new DoctorForm();
             *  this.Hide();
             *  doctorForm.Show();
             * }
             */
        }
Exemplo n.º 2
0
        private void SubmitButton_Click(object sender, EventArgs e)
        {
            string username = UsernameBox.Text;
            string password = PasswordBox.Text;
            PasswordBox.Text = "";

            //temporary fake login as patient
            if (true)
            {
                PatientForm patientForm = new PatientForm();
                this.Hide();
                patientForm.Show();
            }
            else
            {
                DoctorForm doctorForm = new DoctorForm();
                this.Hide();
                doctorForm.Show();
            }

            //TO DO
            // add way to check if correct username or password
            // and if doctor or patient
            /*
            if (patient)
            {
                PatientForm patientForm = new PatientForm();
                this.Hide();
                patientForm.Show();
            }
            //else if (doctor)
            {
                DoctorForm doctorForm = new DoctorForm();
                this.Hide();
                doctorForm.Show();
            }
            */
        }