//************************************************************************************************************* private void OnLoad(object sender, EventArgs e) { if (server.Port == 0) { server.Port = 22; } SuspendLayout(); PuttyAppPanel.PuttyAppStartedCallback startedCallback = delegate() { BeginInvoke((MethodInvoker) delegate { statusLabel.Visible = false; loadingCircle1.Visible = false; puttyPanel.Visible = true; }); }; PuttyAppPanel.PuttyAppClosedCallback closedCallback = delegate(bool closed) { BeginInvoke((MethodInvoker) delegate { ((KRBTabControl)(Parent.Parent)).TabPages.Remove((TabPageEx)Parent); DeletePuttySession(); }); }; puttyPanel = new PuttyAppPanel(Main.config.GetValue("SSH_CORRECT_FOCUS").ToBoolOrDefault(true)); puttyPanel.Parent = this; puttyPanel.Dock = System.Windows.Forms.DockStyle.Fill; puttyPanel.ApplicationCommand = @"putty\putty.exe"; puttyPanel.ApplicationParameters = string.Empty; puttyPanel.Name = "puttyPanel"; puttyPanel.Margin = new Padding(10); puttyPanel.TabIndex = 0; puttyPanel.StartedCallback = startedCallback; puttyPanel.ClosedCallback = closedCallback; puttyPanel.Visible = false; Controls.Add(puttyPanel); ResumeLayout(); }
//************************************************************************************************************* private void OnLoad(object sender, EventArgs e) { if (server.Port == 0) { server.Port = 22; } SuspendLayout(); puttyPanel = new PuttyAppPanel(Main.config.GetValue("SSH_CORRECT_FOCUS").ToBoolOrDefault(true)); puttyPanel.Parent = this; puttyPanel.Dock = System.Windows.Forms.DockStyle.Fill; puttyPanel.ApplicationCommand = @"putty\putty.exe"; puttyPanel.ApplicationParameters = string.Empty; puttyPanel.Name = "puttyPanel"; puttyPanel.Margin = new Padding(10); puttyPanel.TabIndex = 0; puttyPanel.Visible = false; Controls.Add(puttyPanel); ResumeLayout(); }