Esempio n. 1
0
    private void CreateOutputPage()
    {
        m_OutputPage = new Page("Output");
        m_OutputPage.SuspendLayout();

        m_OutputControl = new OutputControl() {
            Id = "Output" };
        m_OutputPage.AddControl( m_OutputControl, true );

        m_PictureBox = new PictureBox();
        ((System.ComponentModel.ISupportInitialize)(m_PictureBox)).BeginInit();
        m_PictureBox.Location = new System.Drawing.Point(0, 0);
        m_PictureBox.Margin = new System.Windows.Forms.Padding(0, 6, 0, 0);
        m_PictureBox.Size = new System.Drawing.Size(32, 32);
        m_PictureBox.TabStop = false;
        //m_PictureBox.Image = NoConsoleLib.Properties.Resources.circle_green;
        ((System.ComponentModel.ISupportInitialize)(m_PictureBox)).EndInit();

        m_InfoTextBox = new InfoTextbox();
        m_InfoTextBox.SetHeightRows( 2 );

        m_KillButton = new Button();
        m_KillButton.Image = NoConsoleLib.Properties.Resources.Skull;
        m_KillButton.Location = new System.Drawing.Point(0, 0);
        m_KillButton.Size = new System.Drawing.Size(26, 26);
        Lib.ToolTip.SetToolTip(m_KillButton, "Kill");
        m_KillButton.UseVisualStyleBackColor = true;
        m_KillButton.Click += new System.EventHandler(this.OnKillClick);

        TableLayoutPanel tableLayoutPanel1 = new TableLayoutPanel();
        tableLayoutPanel1.SuspendLayout();
        tableLayoutPanel1.ColumnCount = 3;
        tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 32F + 12f));
        tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
        tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 32F));
        tableLayoutPanel1.RowCount = 1;
        tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
        tableLayoutPanel1.Controls.Add(m_PictureBox,  0, 0);
        tableLayoutPanel1.Controls.Add(m_InfoTextBox, 1, 0);
        tableLayoutPanel1.Controls.Add(m_KillButton, 2, 0);
        tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
        tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(0, 0, 0, 0);
        tableLayoutPanel1.Size = new System.Drawing.Size(300, 32 + 6);
        m_OutputPage.AddControl(tableLayoutPanel1);
        tableLayoutPanel1.ResumeLayout(false);

        m_OutputPage.ResumeLayout();
    }
Esempio n. 2
0
    private void CreateParamsPage()
    {
        m_ParamsPage = new Page("Parameters");
        m_ParamsPage.SuspendLayout();

        m_ExeFileProp = new FileProperty {
            Id = "ExecutableFile",
            Title = "Executable file" };
        m_ParamsPage.AddControl( m_ExeFileProp );
        m_ExeFileProp.MyOpenFileDialog.Filter = "Executable files|*.exe|All files|*";

        m_WorkingDirProp = new DirectoryProperty {
            Id = "WorkingDirectory",
            Title = "Working directory" };
        m_ParamsPage.AddControl( m_WorkingDirProp );

        m_ArgsMemoProp = new MemoProperty {
            Id = "Arguments",
            Title = "Arguments" };
        m_ParamsPage.AddControl( m_ArgsMemoProp );
        m_ArgsMemoProp.MyTextBox.Font = Lib.MonospacedFont;

        m_ParamsPage.ResumeLayout();
    }