示例#1
0
 private void optionsStripMenuItem_Click(object sender, EventArgs e)
 {
     using (ToDoOptionsDialog dialog = new ToDoOptionsDialog(new ToDoOptions(_options)))
     {
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             _options = dialog.Options;
             _engine.SettingsProvider.Set("ToDoOptions", _options, PersistHint.AcrossSessions);
         }
     }
     CreateGroupsInListView();
     PopulateListView();
 }
示例#2
0
 private void optionsStripMenuItem_Click(object sender, EventArgs e)
 {
     using (ToDoOptionsDialog dialog = new ToDoOptionsDialog(new ToDoOptions(_options)))
     {
         if(dialog.ShowDialog() == DialogResult.OK)
         {
             _options = dialog.Options;
             _engine.SettingsProvider.Set("ToDoOptions", _options, PersistHint.AcrossSessions);
         }
     }
     CreateGroupsInListView();
     PopulateListView();
 }