void Save() { if (this != DebuggerSettings.Instance) { return; } ILSpySettings.Update(root => Save(root)); }
void Save() { if (this != CallStackSettings.Instance) { return; } ILSpySettings.Update(root => Save(root)); }
void Save() { if (this != BreakpointSettings.Instance) { return; } ILSpySettings.Update(root => Save(root)); }
void Save() { if (this != LocalsSettings.Instance) { return; } ILSpySettings.Update(root => Save(root)); }
void OKButton_Click(object sender, RoutedEventArgs e) { RefreshFlags = RefreshFlags.None; ILSpySettings.Update( delegate(XElement root) { foreach (var optionPage in optionPages) { RefreshFlags |= optionPage.Save(root); } }); this.DialogResult = true; Close(); }
public void Closed() { DebuggerService.DebugStarted -= new EventHandler(OnDebugStarted); DebuggerService.DebugStopped -= new EventHandler(OnDebugStopped); if (null != m_currentDebugger) { OnDebugStopped(null, EventArgs.Empty); } // save settings DebuggerSettings.Instance.PropertyChanged -= new PropertyChangedEventHandler(OnDebuggerSettingChanged); ILSpySettings.Update( delegate(XElement root) { DebuggerSettings.Instance.Save(root); }); }
void OKButton_Click(object sender, RoutedEventArgs e) { ILSpySettings.Update( delegate(XElement root) { foreach (var optionPage in optionPages) { IOptionPage page = optionPage.Value as IOptionPage; if (page != null) { page.Save(root); } } }); this.DialogResult = true; Close(); }
void OnDebuggerSettingChanged(object sender, PropertyChangedEventArgs args) { ILSpySettings.Update( delegate(XElement root) { DebuggerSettings.Instance.Save(root); }); if (args.PropertyName == "ShowModuleName") { SwitchModuleColumn(); } else if (args.PropertyName == "ShowArguments" || args.PropertyName == "ShowArgumentValues") { RefreshPad(); } }
void Save() { ILSpySettings.Update(root => Save(root)); }