// public event CommandLineDialog.UpdateDelegate UpdateEvent // { // add // { // CommandLineDialog.UpdateDelegate updateDelegate = this.UpdateEvent; // CommandLineDialog.UpdateDelegate updateDelegate2; // do // { // updateDelegate2 = updateDelegate; // updateDelegate = Interlocked.CompareExchange<CommandLineDialog.UpdateDelegate>(ref this.UpdateEvent, (CommandLineDialog.UpdateDelegate)Delegate.Combine(updateDelegate2, value), updateDelegate); // } // while (updateDelegate != updateDelegate2); // } // remove // { // CommandLineDialog.UpdateDelegate updateDelegate = this.UpdateEvent; // CommandLineDialog.UpdateDelegate updateDelegate2; // do // { // updateDelegate2 = updateDelegate; // updateDelegate = Interlocked.CompareExchange<CommandLineDialog.UpdateDelegate>(ref this.UpdateEvent, (CommandLineDialog.UpdateDelegate)Delegate.Remove(updateDelegate2, value), updateDelegate); // } // while (updateDelegate != updateDelegate2); // } // } public static CommandLineDialog CreateCommandLineDialog(string title) { CommandLineDialog commandLineDialog = (!ExecutionEnvironment.InBatchMode) ? ((CommandLineDialog)EditorWindow.GetWindow(typeof(CommandLineDialog), true, title)) : new CommandLineDialog(); commandLineDialog.Initialize(); return(commandLineDialog); }
/// <summary> /// Create a dialog box which can display command line output. /// </summary> /// <returns>Reference to the new window.</returns> public static CommandLineDialog CreateCommandLineDialog(string title) { CommandLineDialog window = (CommandLineDialog)EditorWindow.GetWindow( typeof(CommandLineDialog), true, title); window.Initialize(); return(window); }
/// <summary> /// Create a dialog box which can display command line output. /// </summary> /// <returns>Reference to the new window.</returns> public static CommandLineDialog CreateCommandLineDialog(string title) { // In batch mode we simply create the class without instancing the visible window. CommandLineDialog window = ExecutionEnvironment.InBatchMode ? new CommandLineDialog() : (CommandLineDialog)EditorWindow.GetWindow( typeof(CommandLineDialog), true, title); window.Initialize(); return(window); }