public Update_appointment() { InitializeComponent(); control_object = new Receptionist_Controller(); DataTable dt = control_object.doctors_names(); comboBox1.DataSource = dt; comboBox1.DisplayMember = "Name"; comboBox1.ValueMember = "User_name"; }
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"; }