コード例 #1
0
		public void UpdateBusyState (BusyStateEventArgs args)
		{
			if (!args.IsBusy) {
				if (Dialog != null) {
					Dialog.Destroy ();
					Dialog.Dispose ();
					Dialog = null;
				}
			} else {
				if (Dialog == null)
					Dialog = new BusyEvaluatorDialog ();
				
				Dialog.Show ();
			}
		}
コード例 #2
0
ファイル: DebuggingService.cs プロジェクト: thild/monodevelop
 static DebuggingService()
 {
     executionHandlerFactory           = new DebugExecutionHandlerFactory();
     TextFileService.LineCountChanged += OnLineCountChanged;
     IdeApp.Initialized += delegate {
         IdeApp.Workspace.StoringUserPreferences  += OnStoreUserPrefs;
         IdeApp.Workspace.LoadingUserPreferences  += OnLoadUserPrefs;
         IdeApp.Workspace.LastWorkspaceItemClosed += OnSolutionClosed;
         busyDialog = new BusyEvaluatorDialog();
     };
     AddinManager.AddExtensionNodeHandler(FactoriesPath, delegate {
         // Regresh the engine list
         engines = null;
     });
     AddinManager.AddExtensionNodeHandler(EvaluatorsPath, delegate {
         // Regresh the engine list
         evaluators = null;
     });
 }
コード例 #3
0
 static DebuggingService()
 {
     executionHandlerFactory             = new DebugExecutionHandlerFactory();
     TextEditorService.LineCountChanged += OnLineCountChanged;
     IdeApp.Initialized += delegate {
         IdeApp.Workspace.StoringUserPreferences  += OnStoreUserPrefs;
         IdeApp.Workspace.LoadingUserPreferences  += OnLoadUserPrefs;
         IdeApp.Workspace.LastWorkspaceItemClosed += OnSolutionClosed;
         busyDialog = new BusyEvaluatorDialog();
         busyDialog.TransientFor      = MessageService.RootWindow;
         busyDialog.DestroyWithParent = true;
     };
     AddinManager.AddExtensionNodeHandler(FactoriesPath, delegate {
         // Refresh the engines list
         engines = null;
     });
     AddinManager.AddExtensionNodeHandler(EvaluatorsPath, delegate {
         // Refresh the evaluators list
         evaluators = null;
     });
 }
コード例 #4
0
        public void UpdateBusyState(BusyStateEventArgs args)
        {
            if (!args.IsBusy)
            {
                if (Dialog != null)
                {
                    Dialog.Destroy();
                    Dialog.Dispose();
                    Dialog = null;
                }
            }
            else
            {
                if (Dialog == null)
                {
                    Dialog = new BusyEvaluatorDialog();
                }

                Dialog.Show();
            }
        }
コード例 #5
0
		static DebuggingService()
		{
			executionHandlerFactory = new DebugExecutionHandlerFactory ();
			TextFileService.LineCountChanged += OnLineCountChanged;
			IdeApp.Initialized += delegate {
				IdeApp.Workspace.StoringUserPreferences += OnStoreUserPrefs;
				IdeApp.Workspace.LoadingUserPreferences += OnLoadUserPrefs;
				IdeApp.Workspace.LastWorkspaceItemClosed += OnSolutionClosed;
				busyDialog = new BusyEvaluatorDialog ();
			};
			AddinManager.AddExtensionNodeHandler (FactoriesPath, delegate {
				// Regresh the engine list
				engines = null;
			});
			AddinManager.AddExtensionNodeHandler (EvaluatorsPath, delegate {
				// Regresh the engine list
				evaluators = null;
			});
        }
コード例 #6
0
		static DebuggingService ()
		{
			executionHandlerFactory = new DebugExecutionHandlerFactory ();
			TextEditorService.LineCountChanged += OnLineCountChanged;
			IdeApp.Initialized += delegate {
				IdeApp.Workspace.StoringUserPreferences += OnStoreUserPrefs;
				IdeApp.Workspace.LoadingUserPreferences += OnLoadUserPrefs;
				IdeApp.Workspace.LastWorkspaceItemClosed += OnSolutionClosed;
				busyDialog = new BusyEvaluatorDialog ();
				busyDialog.TransientFor = MessageService.RootWindow;
				busyDialog.DestroyWithParent = true;
			};
			AddinManager.AddExtensionNodeHandler (FactoriesPath, delegate {
				// Refresh the engines list
				engines = null;
			});
			AddinManager.AddExtensionNodeHandler (EvaluatorsPath, delegate {
				// Refresh the evaluators list
				evaluators = null;
			});
        }