Пример #1
0
 private void Window_Closing(object sender, CancelEventArgs e)
 {
     int.TryParse(LimitTextBox.Text, out int limit);
     Settings.Default.Limit = limit;
     Settings.Default.MRU.Clear();
     Settings.Default.MRU.AddRange(PathComboBox.Items.Cast <string>().ToArray());
     Settings.Default.Save();
     DosDeviceHelpers.RemoveAllAddedDosDevices();
 }