Example #1
0
        private void PanelDoctor_Click(object sender, EventArgs e)
        {
            Doctor         doctor         = (sender as Control).Tag as Doctor;
            FormRateDoctor formRateDoctor = new FormRateDoctor(doctor);

            formRateDoctor.ShowDialog();
        }
Example #2
0
        private void PanelDoctor_Click(object sender, EventArgs e)
        {
            string docname        = (sender as Control).Tag.ToString();
            Doctor selectedDoctor = new Doctor("", "", "", "");

            Console.WriteLine("docname");

            foreach (Doctor doctor in doctors)
            {
                if (doctor.Name.Equals(docname))
                {
                    selectedDoctor = doctor;
                    break;
                }
            }

            FormRateDoctor formRateDoctor = new FormRateDoctor(selectedDoctor);

            formRateDoctor.ShowDialog();
        }