コード例 #1
0
 public CaptchaForm(MainForm main, AccessManager aManager)
 {
     InitializeComponent();
     mainForm = main;
     accessManager = aManager;
     captchaLabel.Text = CaptchaGenerator.Generate(out captchaValue);
 }
コード例 #2
0
 public LoginForm(AccessManager am, MainForm sender)
 {
     InitializeComponent();
     accessManager = am;
     parentForm = sender;
     captchaLabel.Text = CaptchaGenerator.Generate(out captchaValue);
 }
コード例 #3
0
 public AddUserForm(MainForm main, AccessManager accManager)
 {
     InitializeComponent();
     mainForm = main;
     accessManager = accManager;
     InitiaizeAccessPanel();
 }
コード例 #4
0
 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();
 }
コード例 #5
0
 public MainForm()
 {
     InitializeComponent();
     accessManager = new AccessManager();
     (new LoginForm(accessManager, this)).Show();
 }