public Storage(int id) { InitializeComponent(); control_object = new Login_Controller(); label1.Text = "Welcome Mr." + control_object.Employee_fname(id); us = id; }
public Reciptionist(int id) { InitializeComponent(); control_object = new Login_Controller(); control_object2 = new Receptionist_Controller(); label1.Text = "Welcome MS." + control_object.Employee_fname(id); }
public Doctor(int user_name) { InitializeComponent(); control_object = new Login_Controller(); id = user_name; label1.Text = "Welcome Dr." + control_object.Employee_fname(user_name); if ((user_name / 1000) == 11) { button1.Enabled = false; button6.Enabled = false; button5.Enabled = false; button2.Enabled = false; button3.Enabled = false; button11.Enabled = false; } }