示例#1
0
    // Bitmap tbBmp = null;
    #endregion

    #region " StartUp/CleanUp "
    void CommandMenuInit()
    {
        if(textMonitor == null)
            textMonitor = new TextMonitor(this);
        if (scriptRunner == null)
            scriptRunner = new ScriptRunner(this);
        if (settings == null)
            settings = LoadSettings();

      SetCommand(0, "Run Ruby Script(This File)", runTestClass, new ShortcutKey(true, false, true, Keys.Y));
      SetCommand(1, "Run Test (Single Method)", runTestMethod, new ShortcutKey(true, false, true, Keys.T));
      SetCommand(2, "---", null);
      SetCommand(3, "Toggle Output Window", toggleOutputDialog, new ShortcutKey(true, false, true, Keys.R)); idOutputDlg = 1;
      SetCommand(4, "Toggle Auto-Insert 'end's", toggleInsertEnds, settings.InsertEnds); idOutputDlg = 1;
      SetCommand(5, "---", null);
      SetCommand(6, "Settings...", showSettings);
    }
示例#2
0
        // Bitmap tbBmp = null;
        #endregion

        #region " StartUp/CleanUp "
        void CommandMenuInit()
        {
            if (textMonitor == null)
            {
                textMonitor = new TextMonitor(this);
            }
            if (scriptRunner == null)
            {
                scriptRunner = new ScriptRunner(this);
            }
            if (settings == null)
            {
                settings = LoadSettings();
            }

            SetCommand(0, "Run Ruby Script(This File)", runTestClass, new ShortcutKey(true, false, true, Keys.Y));
            SetCommand(1, "Run Test (Single Method)", runTestMethod, new ShortcutKey(true, false, true, Keys.T));
            SetCommand(2, "---", null);
            SetCommand(3, "Toggle Output Window", toggleOutputDialog, new ShortcutKey(true, false, true, Keys.R)); idOutputDlg = 1;
            SetCommand(4, "Toggle Auto-Insert 'end's", toggleInsertEnds, settings.InsertEnds); idOutputDlg = 1;
            SetCommand(5, "---", null);
            SetCommand(6, "Settings...", showSettings);
        }