private string old_id; //old id to hellp us update new id at worker public Add_user() { InitializeComponent(); string dbpath = Application.StartupPath + @"\StoreData.accdb";//database path User_control.ConnectionString = dbpath; User_data = User_control.Instance; all_employee = User_data.getemployeedata();//get employee data }
public Login() { InitializeComponent(); string dbpath; dbpath = Application.StartupPath + @"\Database\StoreData.accdb"; User_control.ConnectionString = dbpath; User_data = User_control.Instance; manger_id = "admin"; //manger id cant be changed user = User_data.getemployeedata(); //get users info }
private void manger_email() { user = User_data.getemployeedata(); for (int i = 0; i < user.Length; i++) { if (user[i].Id == "admin") { manger_mail = user[i].Email; from.Text = manger_mail; return; } } }