public CaptchaForm(MainForm main, AccessManager aManager) { InitializeComponent(); mainForm = main; accessManager = aManager; captchaLabel.Text = CaptchaGenerator.Generate(out captchaValue); }
public LoginForm(AccessManager am, MainForm sender) { InitializeComponent(); accessManager = am; parentForm = sender; captchaLabel.Text = CaptchaGenerator.Generate(out captchaValue); }
public AddUserForm(MainForm main, AccessManager accManager) { InitializeComponent(); mainForm = main; accessManager = accManager; InitiaizeAccessPanel(); }
public UsersActivityForm(MainForm main, AccessManager accessManager) { InitializeComponent(); mainForm = main; accessManager.ActivityLog.Reverse(); foreach (var str in accessManager.ActivityLog) { textBox1.AppendText(str + "\n"); } accessManager.ActivityLog.Reverse(); accessManager.CriticalActivityLog.Reverse(); foreach (var str in accessManager.CriticalActivityLog) { textBox2.AppendText(str + "\n"); } accessManager.CriticalActivityLog.Reverse(); }
public MainForm() { InitializeComponent(); accessManager = new AccessManager(); (new LoginForm(accessManager, this)).Show(); }