Esempio n. 1
0
        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
        }
Esempio n. 2
0
        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
        }
Esempio n. 3
0
        public Mail_form()
        {
            InitializeComponent();
            string dbpath = Application.StartupPath + @"\StoreData.accdb";//database path

            User_control.ConnectionString = dbpath;
            User_data = User_control.Instance;
            Supplier_control.ConnectionString = dbpath;
            Supplier_data = Supplier_control.Instance;
            Order_control.ConnectionString = dbpath;
            Order_data = Order_control.Instance;
            manger_email();
        }