示例#1
0
 public Delete_storage()
 {
     InitializeComponent();
     control_object          = new Storage_controller();
     dt                      = control_object.get_medicine_name();
     comboBox1.DataSource    = dt;
     comboBox1.DisplayMember = "Name";
     comboBox1.ValueMember   = "ID";
 }
示例#2
0
        public View_storage_info()
        {
            InitializeComponent();
            control_object = new Storage_controller();
            DataTable dt = control_object.view_storage_info();

            dataGridView1.DataSource = dt;
            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";
 }
示例#4
0
 public Add_Storage(int id)
 {
     InitializeComponent();
     control_object = new Storage_controller();
     us             = id;
 }