Пример #1
0
        private void frmDoctorCheckup_Load(object sender, EventArgs e)
        {
            try
            {
                frmDoctorChecupRoom fdcr = new frmDoctorChecupRoom();
                fdcr.ShowDialog();
                if (fdcr.DialogResult == DialogResult.Yes)
                {
                    this.CurrentRoom  = fdcr.CurrentRoom;
                    this.lblRoom.Text = CurrentRoom.Name;
                }
                else
                {
                    this.Close();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Doctor Checup Load");
            }

            try
            {
                NextTokenData();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Connecting L E D");
            }
        }
Пример #2
0
        private void frmDoctorCheckup_Load(object sender, EventArgs e)
        {
            try
            {
                frmDoctorChecupRoom fdcr = new frmDoctorChecupRoom();
                fdcr.ShowDialog();
                if (fdcr.DialogResult == DialogResult.Yes)
                {
                    this.CurrentRoom  = fdcr.CurrentRoom;
                    this.lblRoom.Text = CurrentRoom.Name;

                    labtests = new LabTestBLL().GetMedicines();
                    cbxLabTest.DataSource    = labtests;
                    cbxLabTest.DisplayMember = "TestName";
                    cbxLabTest.ValueMember   = "LabTestId";
                }
                else
                {
                    this.Close();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Doctor Checup Load");
            }

            try
            {
                NextTokenData();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Connecting L E D");
            }
        }