Inheritance: System.Windows.Forms.Panel
示例#1
0
        private void CreatePanel()
        {
            this.applicationwrapper1 = new ApplicationPanel();
            this.SuspendLayout();
            this.applicationwrapper1.Dock                  = System.Windows.Forms.DockStyle.Fill;
            this.applicationwrapper1.ApplicationName       = frmSuperPutty.PuttyExe;
            this.applicationwrapper1.ApplicationParameters = this.ApplicationParameters;
            this.applicationwrapper1.Location              = new System.Drawing.Point(0, 0);
            this.applicationwrapper1.Name                  = "applicationControl1";
            this.applicationwrapper1.Size                  = new System.Drawing.Size(284, 264);
            this.applicationwrapper1.TabIndex              = 0;
            this.applicationwrapper1.m_CloseCallback       = this.m_ApplicationExit;
            this.Controls.Add(this.applicationwrapper1);

            this.ResumeLayout();
        }
示例#2
0
        public ctlPuttyPanel(SessionData session, PuttyClosedCallback callback)
        {
            m_Session = session;
            m_ApplicationExit = callback;
            m_puttyStartInfo = new PuttyStartInfo(session);

            InitializeComponent();

            this.Text = session.SessionName;
            this.TabText = session.SessionName;
            this.TextOverride = session.SessionName;

            CreatePanel();
            this.Session = this.m_Session;
            this.AppPanel = this.m_AppPanel;
            AdjustMenu();
        }
示例#3
0
        private void CreatePanel()
        {
            this.m_AppPanel = new ApplicationPanel();
            this.SuspendLayout();
            this.m_AppPanel.Dock                        = System.Windows.Forms.DockStyle.Fill;
            this.m_AppPanel.ApplicationName             = this.m_puttyStartInfo.Executable;
            this.m_AppPanel.ApplicationParameters       = this.m_puttyStartInfo.Args;
            this.m_AppPanel.ApplicationWorkingDirectory = this.m_puttyStartInfo.WorkingDir;
            this.m_AppPanel.Location                    = new System.Drawing.Point(0, 0);
            this.m_AppPanel.Name                        = this.m_Session.SessionId; // "applicationControl1";
            this.m_AppPanel.Size                        = new System.Drawing.Size(this.Width, this.Height);
            this.m_AppPanel.TabIndex                    = 0;
            this.m_AppPanel.m_CloseCallback             = this.m_ApplicationExit;
            this.Controls.Add(this.m_AppPanel);

            this.ResumeLayout();
        }
示例#4
0
        private void CreatePanel(bool isPutty)
        {
            this.applicationwrapper1 = new ApplicationPanel();
            this.SuspendLayout();            
            this.applicationwrapper1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.applicationwrapper1.ApplicationName = isPutty ? frmSuperPutty.PuttyExe : frmSuperPutty.MinttyExe;
            this.applicationwrapper1.ApplicationParameters = this.ApplicationParameters;
            this.applicationwrapper1.Location = new System.Drawing.Point(0, 0);
            this.applicationwrapper1.Name = "applicationControl1";
            this.applicationwrapper1.Size = new System.Drawing.Size(284, 264);
            this.applicationwrapper1.TabIndex = 0;            
            this.applicationwrapper1.m_CloseCallback = this.m_ApplicationExit;
            this.Controls.Add(this.applicationwrapper1);
            this.applicationwrapper1.VisibleChanged += applicationwrapper1_VisibleChanged;
            this.applicationwrapper1.HandleDestroyed += applicationwrapper1_HandleDestroyed;
            this.applicationwrapper1.OutputDataReceived += applicationwrapper1_OutputDataReceived;

            this.ResumeLayout();
        }
示例#5
0
        private void CreatePanel(bool isPutty)
        {
            this.applicationwrapper1 = new ApplicationPanel();
            this.SuspendLayout();
            this.applicationwrapper1.Dock                  = System.Windows.Forms.DockStyle.Fill;
            this.applicationwrapper1.ApplicationName       = isPutty ? frmSuperPutty.PuttyExe : frmSuperPutty.MinttyExe;
            this.applicationwrapper1.ApplicationParameters = this.ApplicationParameters;
            this.applicationwrapper1.Location              = new System.Drawing.Point(0, 0);
            this.applicationwrapper1.Name                  = "applicationControl1";
            this.applicationwrapper1.Size                  = new System.Drawing.Size(284, 264);
            this.applicationwrapper1.TabIndex              = 0;
            this.applicationwrapper1.m_CloseCallback       = this.m_ApplicationExit;
            this.Controls.Add(this.applicationwrapper1);
            this.applicationwrapper1.VisibleChanged     += applicationwrapper1_VisibleChanged;
            this.applicationwrapper1.HandleDestroyed    += applicationwrapper1_HandleDestroyed;
            this.applicationwrapper1.OutputDataReceived += applicationwrapper1_OutputDataReceived;

            this.ResumeLayout();
        }
示例#6
0
        private void CreatePanel()
        {
            this.m_AppPanel = new ApplicationPanel();
            this.SuspendLayout();
            this.m_AppPanel.Dock = System.Windows.Forms.DockStyle.Fill;
            this.m_AppPanel.ApplicationName = this.m_puttyStartInfo.Executable;
            this.m_AppPanel.ApplicationParameters = this.m_puttyStartInfo.Args;
            this.m_AppPanel.ApplicationWorkingDirectory = this.m_puttyStartInfo.WorkingDir;
            this.m_AppPanel.Location = new System.Drawing.Point(0, 0);
            this.m_AppPanel.Name = this.m_Session.SessionId; // "applicationControl1";
            this.m_AppPanel.Size = new System.Drawing.Size(this.Width, this.Height);
            this.m_AppPanel.TabIndex = 0;
            this.m_AppPanel.m_CloseCallback = this.m_ApplicationExit;
            this.Controls.Add(this.m_AppPanel);

            this.ResumeLayout();
        }
示例#7
0
        private void CreatePanel()
        {
            this.applicationwrapper1 = new ApplicationPanel();
            this.SuspendLayout();
            this.applicationwrapper1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.applicationwrapper1.ApplicationName = frmSuperPutty.PuttyExe;
            this.applicationwrapper1.ApplicationParameters = this.ApplicationParameters;
            this.applicationwrapper1.Location = new System.Drawing.Point(0, 0);
            this.applicationwrapper1.Name = "applicationControl1";
            this.applicationwrapper1.Size = new System.Drawing.Size(284, 264);
            this.applicationwrapper1.TabIndex = 0;
            this.applicationwrapper1.m_CloseCallback = this.m_ApplicationExit;
            this.Controls.Add(this.applicationwrapper1);

            this.ResumeLayout();
        }