Example #1
0
 void editLayoutHistoryMenuItem_Click(object sender, EventArgs e)
 {
     var editHistoryDialog = new EditHistoryDialog(Settings.RecentLayouts);
     if (editHistoryDialog.ShowDialog(this) != System.Windows.Forms.DialogResult.Cancel)
         Settings.RecentLayouts = editHistoryDialog.History;
     UpdateRecentLayouts();
 }
Example #2
0
 void editSplitHistoryMenuItem_Click(object sender, EventArgs e)
 {
     var editHistoryDialog = new EditHistoryDialog(Settings.RecentSplits.Select(x => x.Path));
     if (editHistoryDialog.ShowDialog(this) != System.Windows.Forms.DialogResult.Cancel)
         Settings.RecentSplits = new List<RecentSplitsFile>(Settings.RecentSplits.Where(x => editHistoryDialog.History.Contains(x.Path)));
     UpdateRecentSplits();
 }