예제 #1
0
        private void monitorButton_Click(object sender, EventArgs e)
        {
            MonitorForm form = new MonitorForm();

            Hide();
            form.Show();
        }
예제 #2
0
파일: MainForm.cs 프로젝트: sy26856/AMShell
        public void OpenSshSessionWindow(SessionConfig sessionConfig)
        {
            FATabStripItem page = new FATabStripItem();

            MonitorForm form = new MonitorForm(sessionConfig);

            form.FormBorderStyle = FormBorderStyle.None;
            form.TopLevel        = false;
            form.Dock            = DockStyle.Fill;
            form.Show();

            page.Tag   = sessionConfig;
            page.Name  = "page-" + TAB_INDEX;
            page.Title = string.Format("{0} {1}", faTab.Items.Count + 1, sessionConfig.Name);
            page.Controls.Add(form);

            TAB_MONITOR.Add(page, form);

            faTab.Items.Add(page);
            faTab.SelectedItem = page;

            page.ContextMenuStrip = contextMenuStrip1;

            TAB_INDEX++;

            tsl_info1.Text = sessionConfig.Host + "@" + sessionConfig.UserName;
        }
예제 #3
0
 private void toolStripButton2_Click(object sender, EventArgs e)
 {
     if (monitorForm.IsDisposed != true)
     {
         monitorForm.Show();  //弹出这个窗口
         monitorForm.Focus(); //激活显示
     }
     else
     {
         monitorForm = new MonitorForm();
         monitorForm.Show();  //弹出这个窗口
         monitorForm.Focus(); //激活显示
     }
 }