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"); }
/// <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); }