/// <summary> /// Method backs ListView to drives /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ButtonToDrivesTo_OnClick(object sender, RoutedEventArgs e) { try { DriveTree.SetDrives(ListViewDestinationTo); ButtonBackUpTo.Content = string.Empty; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
/// <summary> /// Default constructor /// </summary> public MainWindow() { try { InitializeComponent(); DriveTree.SetDrives(ListViewDestinationFrom); DriveTree.SetDrives(ListViewDestinationTo); ButtonBackUpFrom.Content = string.Empty; ButtonBackUpTo.Content = string.Empty; } catch (Exception ex) { MessageBox.Show(ex.Message); } }