static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     SecureBox.BL.SecureBox secBox = new BL.SecureBox();
     Application.Run(new MainWindow(secBox));
 }
Beispiel #2
0
 public MainWindow(SecureBox.BL.SecureBox secBox)
 {
     InitializeComponent();
     Application.ApplicationExit += new System.EventHandler(this.applicationExit);
     this.secBox = secBox;
     UpdateList();
     if (drivesList.SelectedRows.Count == empty)
     {
         mountDrive.Enabled = false;
         unmountDrive.Enabled = false;
         removeDrive.Enabled = false;
         changePassword.Enabled = false;
     }
 }
 public PasswordChange(SecureBox.BL.SecureBox secBox, DriveInfo drive)
 {
     InitializeComponent();
     this.secBox = secBox;
     this.drive = drive;
 }
 public MainWindow()
 {
     InitializeComponent();
     secBox = new BL.SecureBox();
     UpdateList();
 }
 public CheckPassword(BL.SecureBox secBox, DriveInfo drive)
 {
     InitializeComponent();
     this.drive = drive;
     this.secBox = secBox;
 }