//************************************************************************************************************* public override bool OnTabClose() { bool ret = true; if (form != null) { ret = form.OnTabClose(); } form = null; return(ret); }
//************************************************************************************************************* static void ConnectTrd(object state) { VNCForm form = (VNCForm)state; form.BeginInvoke((MethodInvoker) delegate { try { form.vnc.VncPort = form.server.Port; form.vnc.GetPassword = form.VNCPassword; //form.vnc.Connect(form.server.Host); form.vnc.Connect(form.server.Host, false, form.server.AutoScale); } catch (Exception ex) { form.vnc_ConnectionLost(null, null); MessageBox.Show(ex.Message); } }); }
//************************************************************************************************************* public override void Open(TabPageEx tab) { form = new VNCForm(this); form.Parent = tab; form.Show(); }