Ejemplo n.º 1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     SecureBox.BL.SecureBox secBox = new BL.SecureBox();
     Application.Run(new MainWindow(secBox));
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 4
0
 public MainWindow()
 {
     InitializeComponent();
     secBox = new BL.SecureBox();
     UpdateList();
 }
Ejemplo n.º 5
0
 public CheckPassword(BL.SecureBox secBox, DriveInfo drive)
 {
     InitializeComponent();
     this.drive = drive;
     this.secBox = secBox;
 }