public My_Schedule(int id)
 {
     InitializeComponent();
     control_object           = new Doctor_controller();
     dataGridView1.DataSource = control_object.my_schedule(id);
     dataGridView1.Refresh();
 }
 public All_Employees()
 {
     InitializeComponent();
     control_object                      = new Doctor_controller();
     dataGridView1.DataSource            = control_object.view_all_emloyees();
     dataGridView1.Columns[3].HeaderText = "Type";
     dataGridView1.Refresh();
 }
 public Fire_Employee()
 {
     InitializeComponent();
     control_object          = new Doctor_controller();
     control_obj             = new Storage_controller();
     dt                      = control_object.get_employees();
     comboBox1.DataSource    = dt;
     comboBox1.DisplayMember = "Name";
     comboBox1.ValueMember   = "User_name";
 }
        public Choose_employee(Employee_choice c)
        {
            InitializeComponent();
            control_oject = new Doctor_controller();
            choice2       = new Choose_employee_factory();
            DataTable dt = control_oject.get_employees();

            comboBox1.DataSource    = dt;
            comboBox1.DisplayMember = "Name";
            comboBox1.ValueMember   = "User_name";
            choice = c;
        }
        public Patient_info_view(int id)
        {
            InitializeComponent();
            control_object = new Doctor_controller();

            dataGridView1.DataSource = control_object.Patient_info(id);
            dataGridView1.Refresh();
            dataGridView2.DataSource = control_object.patient_diseases(id);
            dataGridView2.Refresh();
            dataGridView3.DataSource = control_object.medicine_taken(id);
            dataGridView3.Refresh();
        }
Exemplo n.º 6
0
        public Add_new_Appointment()
        {
            InitializeComponent();
            control_object  = new Receptionist_Controller();
            control_object2 = new Doctor_controller();
            DataTable dt = control_object.get_major();

            comboBox3.DataSource    = dt;
            comboBox3.DisplayMember = "Major";
            comboBox3.ValueMember   = "Major";
            radioButton3.Checked    = true;
        }
Exemplo n.º 7
0
 public Doctor_Patient(int id, Function s)
 {
     InitializeComponent();
     user_name      = id;
     control_object = new Doctor_controller();
     if (s == Function.finish_appointment)
     {
         button2.Enabled = false;
     }
     else
     {
         button1.Enabled = false;
     }
 }
Exemplo n.º 8
0
 public Delete_info()
 {
     InitializeComponent();
     control_oject = new Doctor_controller();
 }
Exemplo n.º 9
0
 public Delete_medicine()
 {
     InitializeComponent();
     control_object = new Doctor_controller();
 }
Exemplo n.º 10
0
 public Medicine_form()
 {
     InitializeComponent();
     control_object = new Doctor_controller();
 }
 public Add_new_reciptionist()
 {
     InitializeComponent();
     control_object = new Doctor_controller();
 }
 public Diseases_form()
 {
     InitializeComponent();
     control_object = new Doctor_controller();
 }
Exemplo n.º 13
0
 public Employee_View_strategy()
 {
     c = new Doctor_controller();
 }
Exemplo n.º 14
0
 public Doctor_View_strategy()
 {
     c = new Doctor_controller();
 }
Exemplo n.º 15
0
 public Add_new_storage_man()
 {
     InitializeComponent();
     control_object = new Doctor_controller();
 }
Exemplo n.º 16
0
 public Update_employee(int id)
 {
     InitializeComponent();
     control_object = new Doctor_controller();
     us             = id;
 }