Initialize() public method

Initialize all members of the window.
public Initialize ( ) : void
return void
示例#1
0
        // 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);
        }
示例#2
0
        /// <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);
        }
示例#3
0
        /// <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);
        }