public void LoadRightForm(SshUser sshUser) { rightForm = new SftpLinuxForm(this, sshUser); rightForm.FormBorderStyle = FormBorderStyle.None; rightForm.TopLevel = false; rightForm.Dock = DockStyle.Fill; rightForm.Show(); panel2.Controls.Add(rightForm); WriteLog2("Start Connect...\n"); }
private void SftpForm_FormClosing(object sender, FormClosingEventArgs e) { SftpLinuxForm.RUN_CUT = false; StopL2R(); StopR2L(); if (null != rightForm) { rightForm.Disconnection(); rightForm.Close(); rightForm = null; } }
public void CloseTab(SftpLinuxForm form) { form.Disconnection(); form.Close(); panel2.Controls.Remove(form); }