public Employee_View(int id, View_Strategy s) { InitializeComponent(); strategy = s; DataTable dt = strategy.View_operation(id); dataGridView1.DataSource = dt; dataGridView1.Columns[3].HeaderText = "Type"; dataGridView1.Refresh(); }
public Choose_Doctor(View_Strategy s) { InitializeComponent(); control_object = new Receptionist_Controller(); strategy = s; DataTable dt = control_object.doctors_names(); comboBox1.DataSource = dt; comboBox1.DisplayMember = "Name"; comboBox1.ValueMember = "User_name"; }