Beispiel #1
0
		public override void Execute(object parameter)
		{
			OptionsDialog dlg = new OptionsDialog();
			dlg.Owner = MainWindow.Instance;
			if (dlg.ShowDialog() == true) {
				new RefreshCommand().Execute(parameter);
			}
		}
Beispiel #2
0
 public override void Execute(object parameter)
 {
     OptionsDialog dlg = new OptionsDialog();
     dlg.Owner = MainWindow.Instance;
     if (dlg.ShowDialog() == true) {
         var inst = MainWindow.Instance;
         bool disassembleIL = (dlg.RefreshFlags & RefreshFlags.IL) != 0;
         bool decompileILAst = (dlg.RefreshFlags & RefreshFlags.ILAst) != 0;
         bool decompileCSharp = (dlg.RefreshFlags & RefreshFlags.CSharp) != 0;
         bool decompileVB = (dlg.RefreshFlags & RefreshFlags.VB) != 0;
         bool disableMmap = (dlg.RefreshFlags & RefreshFlags.DisableMmap) != 0;
         if (disableMmap) {
             disassembleIL = true;
             decompileILAst = true;
             decompileCSharp = true;
             decompileVB = true;
         }
         if (disableMmap)
             inst.DisableMemoryMappedIO();
         inst.RefreshCodeCSharp(disassembleIL, decompileILAst, decompileCSharp, decompileVB);
         if ((dlg.RefreshFlags & RefreshFlags.TreeViewNodeNames) != 0)
             inst.RefreshTreeViewNodeNames();
     }
 }