예제 #1
0
 void Save()
 {
     if (this != DebuggerSettings.Instance)
     {
         return;
     }
     ILSpySettings.Update(root => Save(root));
 }
예제 #2
0
 void Save()
 {
     if (this != CallStackSettings.Instance)
     {
         return;
     }
     ILSpySettings.Update(root => Save(root));
 }
예제 #3
0
 void Save()
 {
     if (this != BreakpointSettings.Instance)
     {
         return;
     }
     ILSpySettings.Update(root => Save(root));
 }
예제 #4
0
 void Save()
 {
     if (this != LocalsSettings.Instance)
     {
         return;
     }
     ILSpySettings.Update(root => Save(root));
 }
예제 #5
0
 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();
 }
예제 #8
0
        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();
            }
        }
예제 #9
0
 void Save()
 {
     ILSpySettings.Update(root => Save(root));
 }