コード例 #1
0
 void frm_ShowDebug(string dbJson, string setJson, bool show)
 {
     FrmDebug.txtDbJson.Text  = dbJson;
     FrmDebug.txtSetJson.Text = setJson;
     FrmDebug.Focus();
     if (show)
     {
         FrmDebug.Show(DockPanel);
     }
 }
コード例 #2
0
ファイル: ToolbarControl.cs プロジェクト: BigFun123/Massive
        private void DebugButton_Click(object sender, EventArgs e)
        {
            DebugForm f = new DebugForm();

            f.Setup();
            f.Show(this.ParentForm);
        }
コード例 #3
0
ファイル: RunForm.cs プロジェクト: zxscn/ReoGrid
        void Instance_AfterPerformTestCase(object sender, TestCaseEventArgs e)
        {
            ListViewItem item = GetItemByTestSetInfo(e.TestSetInfo);

            item.SubItems[3].Text = string.Format("{0} ms.", e.TestCaseInfo.ElapsedMilliseconds);
            item.SubItems[4].Text = string.Format("{0} KB", (e.TestCaseInfo.MemoryUsage / 1024).ToString("###,###,##0"));

            Exception ex = e.TestCaseInfo.Exception;

            if (ex != null)
            {
                item.SubItems[2].Text = "Failed: " + ex.Message;
                item.ImageIndex       = 2;

                exceptionBuffer.AppendLine(ex.ToString());
                exceptionBuffer.AppendLine();

                grid.Show();

                cellDebug.Show();
                cellDebug.Location = new Point(this.Right + 1, this.Top + 1);
                borderDebug.Show();
                borderDebug.Location = new Point(this.Right + 1, cellDebug.Bottom + 1);
            }
            else if (item.ImageIndex != 2)
            {
                item.SubItems[2].Text = "Success";
                item.ImageIndex       = 1;
            }

            Application.DoEvents();
        }
コード例 #4
0
        private void MainForm_Shown(object sender, EventArgs e)
        {
            this.Text = this.Text + " V" + Assembly.GetExecutingAssembly().GetName().Version.ToString();

            DockPanel = this.dockPanel1;

            _frmDatabase             = new DatabaseForm();
            _frmDatabase.OutputCode += new Action <Database>(frmDatabase_OutputCode);
            _frmDatabase.CreateCode += new Action <Table>(frmDatabase_CreateCode);
            _frmDatabase.DataInfo   += new Action <Database, Table>(frmDatabase_DataInfo);
            _frmDatabase.Show(DockPanel);

            FrmDebug = new DebugForm();
            FrmDebug.Show(DockPanel);


            _frmTemplate = new TemplateForm();
            _frmTemplate.TemplateChanged += new Action(frmTemplate_TemplateChanged);
            _frmTemplate.Show(DockPanel);



            BackgroundWorker bw = new BackgroundWorker();

            bw.DoWork             += new DoWorkEventHandler(bw_DoWork);
            bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bw_RunWorkerCompleted);



            bw.RunWorkerAsync();

            OpenUrl(SqlConfig.HomeUrl);
        }
コード例 #5
0
 internal void ShowDebugForm()
 {
     if (_debugForm == null || !_debugForm.Visible)
     {
         _debugForm = new DebugForm(_voicepackCombiner);
         _debugForm.Show();
     }
 }
コード例 #6
0
        public NVelocityLanguage()
        {
            #region Colorable Items

            _colorableItems = new ColorableItem[] {
                // NVText
                new ColorableItem("NVelocity – Text", "NVelocity – Text", COLORINDEX.CI_SYSPLAINTEXT_FG, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // NVKeyword
                new ColorableItem("NVelocity – Keyword", "NVelocity – Keyword", COLORINDEX.CI_BLUE, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_BOLD),
                // NVComment
                new ColorableItem("NVelocity – Comment", "NVelocity – Comment", COLORINDEX.CI_DARKGREEN, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // NVIdentifier
                new ColorableItem("NVelocity – Identifier", "NVelocity – Identifier", COLORINDEX.CI_PURPLE, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // NVString
                new ColorableItem("NVelocity – String", "NVelocity – String", COLORINDEX.CI_MAROON, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // NVNumber
                new ColorableItem("NVelocity – Number", "NVelocity – Number", COLORINDEX.CI_SYSPLAINTEXT_FG, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // NVDirective
                new ColorableItem("NVelocity – Directive", "NVelocity – Directive", COLORINDEX.CI_BLUE, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_BOLD),
                // NVOperator
                new ColorableItem("NVelocity – Operator", "NVelocity – Operator", COLORINDEX.CI_SYSPLAINTEXT_FG, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // NVBracket
                new ColorableItem("NVelocity – Bracket", "NVelocity – Bracket", COLORINDEX.CI_SYSPLAINTEXT_FG, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // NVDictionaryDelimiter
                new ColorableItem("NVelocity – Dictionary Delimiter", "NVelocity – Dictionary Delimiter", COLORINDEX.CI_PURPLE, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // NVDictionaryKey
                new ColorableItem("NVelocity – Dictionary Key", "NVelocity – Dictionary Key", COLORINDEX.CI_RED, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // NVDictionaryEquals
                new ColorableItem("NVelocity – Dictionary Equals", "NVelocity – Dictionary Equals", COLORINDEX.CI_BLUE, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // XmlText
                new ColorableItem("NVelocity – XML Text", "NVelocity – XML Text", COLORINDEX.CI_SYSPLAINTEXT_FG, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // XmlComment
                new ColorableItem("NVelocity – XML Comment", "NVelocity – XML Comment", COLORINDEX.CI_DARKGREEN, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // XmlTagName
                new ColorableItem("NVelocity – XML Tag Name", "NVelocity – XML Tag Name", COLORINDEX.CI_MAROON, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // XmlAttributeName
                new ColorableItem("NVelocity – XML Attribute Name", "NVelocity – XML Attribute Name", COLORINDEX.CI_RED, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // XmlAttributeValue
                new ColorableItem("NVelocity – XML Attribute Value", "NVelocity – XML Attribute Value", COLORINDEX.CI_BLUE, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // XmlTagDelimiter
                new ColorableItem("NVelocity – XML Tag Delimiter", "NVelocity – XML Tag Delimiter", COLORINDEX.CI_BLUE, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // XmlOperator
                new ColorableItem("NVelocity – XML Operator", "NVelocity – XML Operator", COLORINDEX.CI_BLUE, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // XmlEntity
                new ColorableItem("NVelocity – XML Entity", "NVelocity – XML Entity", COLORINDEX.CI_RED, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT),
                // XmlCDataSection
                new ColorableItem("NVelocity – XML CData Section", "NVelocity – XML CData Section", COLORINDEX.CI_DARKGRAY, COLORINDEX.CI_USERTEXT_BK, Color.Empty, Color.Empty, FONTFLAGS.FF_DEFAULT)
                // XmlProcessingInstruction
                // ===== not done
            };
            #endregion

#if DEBUG
            _debugForm = new DebugForm();
            _debugForm.Show();
#endif
        }
コード例 #7
0
 public void Open()
 {
     if (_form == null)
     {
         _form = new DebugForm(this);
         _form.Show();
         _form.ShowCommands(_commands);
     }
 }
コード例 #8
0
 /// Открывает форму, если она закрыта или закрывает, если открыта
 public void ChangeFormState()
 {
     if (_form == null)
     {
         _form = new DebugForm(this);
         _form.Show();
         _form.ShowCommands(_commands);
     }
     else
     {
         _form.Close();
     }
 }
コード例 #9
0
        //
        // View all forms
        //
        private void RSMPGS_Main_Shown(object sender, EventArgs e)
        {
            if (bLoadFailed)
            {
                return;
            }

            foreach (RSMPGS_Debug DebugForm in RSMPGS.DebugForms)
            {
                DebugForm.Show();
                DebugForm.BringToFront();
            }
        }
コード例 #10
0
 private void DebugToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //启动调试界面
     if (debugForm.IsDisposed != true)
     {
         debugForm.Show();  //弹出这个窗口
         debugForm.Focus(); //激活显示
     }
     else
     {
         debugForm = new DebugForm();
         debugForm.Show();  //弹出这个窗口
         debugForm.Focus(); //激活显示
     }
 }
コード例 #11
0
ファイル: Game1.cs プロジェクト: TerRoshak/EightNet
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            graphics.PreferredBackBufferWidth  = 640;
            graphics.PreferredBackBufferHeight = 320;
            graphics.ApplyChanges();

            Window.AllowUserResizing = true;

            for (int i = 0; i < 16; i++)
            {
                Keys[i] = false;
            }

            chip8 = new CPU();
            dbg   = new DebugForm(chip8);
            dbg.Show();
        }
コード例 #12
0
        public ExampleClient()
            : base()
        {
            // Initialize the DebugForm
            DebugForm = new DebugForm();
            DebugForm.DataController    = Data;
            DebugForm.ResourceManager   = ResourceManager;
            DebugForm.PacketSend       += DebugForm_PacketSend;
            DebugForm.PacketLogChanged += DebugForm_PacketLogChanged;
            DebugForm.Closed           += DebugForm_Closed;
            DebugForm.Show();

            // Initialize the MainForm
            MainForm = new MainForm();
            MainForm.LoginControl.ConnectRequest    += LoginControl_ConnectRequest;
            MainForm.LoginControl.DisconnectRequest += LoginControl_DisconnectRequest;
            MainForm.Closed += MainForm_Closed;
            MainForm.ButtonSelectCharacter.Click += ButtonSelectCharacter_Click;
            MainForm.Show();
        }
コード例 #13
0
            internal static void RefreshLogForm(string log, bool openForm)
            {
                DebugForm debugForm = null;

                if (Helpers.TryGetForm(out debugForm))
                {
                    debugForm.TextBoxDebug.Text           = log;
                    debugForm.TextBoxDebug.SelectionStart = debugForm.TextBoxDebug.Text.Length;
                    debugForm.TextBoxDebug.ScrollToCaret();
                    debugForm.TextBoxDebug.Refresh();
                    debugForm.Activate();
                }
                else if (openForm)
                {
                    debugForm = new DebugForm();
                    debugForm.TextBoxDebug.Text           = log;
                    debugForm.TextBoxDebug.SelectionStart = debugForm.TextBoxDebug.Text.Length;
                    debugForm.TextBoxDebug.ScrollToCaret();
                    debugForm.TextBoxDebug.Refresh();
                    debugForm.Show();
                }
            }
コード例 #14
0
ファイル: MainForm.cs プロジェクト: rrossenbg/vprint
        private void Debug_Click(object sender, EventArgs e)
        {
            DebugForm form = new DebugForm();

            form.Show();
        }