コード例 #1
0
 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();
        }
コード例 #3
0
        //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();
 }
コード例 #5
0
 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");
        }
コード例 #7
0
        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);
 }
コード例 #11
0
 public LoginAdmin(SqlMng mng)
 {
     _validate = new Validate();
     InitializeComponent();
     _sqlmng = mng;
 }
コード例 #12
0
 public CPending(SqlMng mng)
 {
     _utils = new Utils();
     InitializeComponent();
     _sqlMng = mng;
 }
コード例 #13
0
 public CUserReq(SqlMng mng)
 {
     InitializeComponent();
     _sqlMng = mng;
     _utils  = new Utils();
 }