private void menuMachinesProperties_Click(object sender, System.EventArgs e)
        {
            if (treeHosts.SelectedNode == null)
                return;

            HostPropertiesForm hp = new HostPropertiesForm();

            VNCHost host = hp.Display((VNCHost)treeHosts.SelectedNode.Tag);
            if (host != null)
            {
                treeHosts.SelectedNode.Tag = host;
                treeHosts.SelectedNode.Text = ((VNCHost)treeHosts.SelectedNode.Tag).DisplayName;
                SaveConfig();
            }
        }
 private VNCHost GetConnectionDetails(string strTitle)
 {
     HostPropertiesForm hp = new HostPropertiesForm();
     hp.Text = strTitle;
     VNCHost host = hp.Display(new VNCHost("", "0.0.0.0", 0));
     return host;
 }