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();
        }
예제 #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);
 }
예제 #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);
        }
예제 #8
0
 public AdminReq(SqlMng sqlmng)
 {
     InitializeComponent();
     _sqlMng = sqlmng;
     _utils  = new Utils();
 }
예제 #9
0
 public AcceptedReservations(SqlMng mng)
 {
     _utils = new Utils();
     InitializeComponent();
     _sqlMng = mng;
 }
예제 #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;
 }
예제 #13
0
 public CUserReq(SqlMng mng)
 {
     InitializeComponent();
     _sqlMng = mng;
     _utils  = new Utils();
 }