示例#1
0
 public Permissions(MySQLDriver driver)
 {
     _SQL = driver;
     _groups = new Groups(_SQL);
     _formNames = new FormNames(_SQL);
     _actionNames = new ActionNames(_SQL);
 }
示例#2
0
        public SettingsForm()
        {
            InitializeComponent();

            Conn = Authorization.login(AppSettings.Nick, AppSettings.Password);
            SQL = new MySQLDriver(Conn);
            Auth = new Authorization(SQL);
            Groups = new Groups(SQL);
            Permissions = new Permissions(SQL);
            FormNames = new FormNames(SQL);
            ActionNames = new ActionNames(SQL);
            Users = new Users(SQL);

            refreshTab("tabPage1");
            refreshTab("tabPage2");
            refreshTab("tabPage3");
        }
示例#3
0
 /// <summary>
 /// Creates object of Authorizaciton class and provides its nonstatic methods
 /// </summary>
 /// <param name="driver">MySQLDriver object to connect to DB server trought public exif interface.</param>
 public Authorization(MySQLDriver driver)
 {
     SQL = driver;
     _groups = new Groups(SQL);
     _permissions = new Permissions(SQL);
 }