Ejemplo n.º 1
0
 public AddNeighborhoodDriveForm(MainForm MainForm, NeighborhoodDrives Drives, XboxManager Manager)
 {
     InitializeComponent();
     mainForm = MainForm;
     drives   = Drives;
     manager  = Manager;
 }
Ejemplo n.º 2
0
 private void DrivePathEdit_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar != (char)Keys.Enter || !NeighborhoodDrives.IsValidDriveName(DriveNameEdit.Text) || !NeighborhoodDrives.IsValidDriveLocation(DrivePathEdit.Text))
     {
         return;
     }
     DriveName = DriveNameEdit.Text;
     DrivePath = DrivePathEdit.Text;
     Close();
 }
Ejemplo n.º 3
0
 private void DrivePathEdit_Validating(object sender, CancelEventArgs e)
 {
     e.Cancel = !NeighborhoodDrives.IsValidDriveLocation(DrivePathEdit.Text);
 }