private void OnEditClick(object sender, RoutedEventArgs e) { if (DrivesGrid.SelectedItem == null) return; var drive = DrivesGrid.SelectedItem as Drive; var window = new DriveWindow(_config, drive); window.ShowDialog(); }
private void OnAddButtonClick(object sender, RoutedEventArgs e) { var window = new DriveWindow(_config); window.ShowDialog(); }