public SignUp(SqlMng mng)
 {
     _utils    = new Utils();
     _validate = new Validate();
     InitializeComponent();
     sqlMng = mng;
 }
        public AccountSettingsControl(SqlMng sqlmng, Admin admin)
        {
            InitializeComponent();

            _admin  = admin;
            _sqlMng = sqlmng;
            _utils  = new Utils();
        }
        //Admin
        private void button2_Click(object sender, EventArgs e)
        {
            SqlMng = SqlMng.GetObject();
            LoginAdmin loginAdmin = new LoginAdmin(SqlMng);

            loginAdmin.Show();
            this.Hide();
        }
Beispiel #4
0
 public TimeSlots(SqlMng mng)
 {
     _validate = new Validate();
     _utils = new Utils();
     InitializeComponent();
     _sqlMng = mng;
     _sql = new SQLConnection();
 }
 public static SqlMng GetObject()
 {
     if (sqlmng == null)
     {
         sqlmng = new SqlMng();
         con    = new SqlConnection("Server=10.0.9.100\\SQLEXPRESS;Database=ISDLabProject;Integrated Security = SSPI");
         return(sqlmng);
     }
     return(sqlmng);
 }
Beispiel #6
0
        public UDevice(SqlMng mng)
        {
            _validate = new Validate();
            _utils    = new Utils();
            _sql      = new SQLConnection();

            InitializeComponent();
            _sqlMng = mng;
            _utils.Load_DataGrid(dgv_Devices, _sqlMng, "sp_getDevices");
        }
        public DashboardAdmin(SqlMng mng, Admin admin)
        {
            InitializeComponent();

            lbl_Header.Text = dash + " - " + "Home";


            _sqlMng = mng;
            _admin  = admin;
            _utils  = new Utils();

            _utils.Change_UserControl(new HomeAdmin(_admin), p_DashControl);
        }
Beispiel #8
0
 public AdminReq(SqlMng sqlmng)
 {
     InitializeComponent();
     _sqlMng = sqlmng;
     _utils  = new Utils();
 }
Beispiel #9
0
 public AcceptedReservations(SqlMng mng)
 {
     _utils = new Utils();
     InitializeComponent();
     _sqlMng = mng;
 }
Beispiel #10
0
 //Admin
 public void Load_DataGrid(DataGridView dgv, SqlMng sql, string sp_Name)
 {
     dgv.DataSource = sql.getTable(sp_Name);
 }
 public LoginAdmin(SqlMng mng)
 {
     _validate = new Validate();
     InitializeComponent();
     _sqlmng = mng;
 }
 public CPending(SqlMng mng)
 {
     _utils = new Utils();
     InitializeComponent();
     _sqlMng = mng;
 }
Beispiel #13
0
 public CUserReq(SqlMng mng)
 {
     InitializeComponent();
     _sqlMng = mng;
     _utils  = new Utils();
 }