public bool AddServer(uint dwType)
        {
            ushort port = Framework.Container.Instance.VDAConfigService.GetServerPortByServerType((E_VDA_SERVER_TYPE)dwType);

            using (FormNewServer dlg = new FormNewServer(new ServerInfo {
                Type = dwType, Port = port
            }))
            {
                dlg.StartPosition = FormStartPosition.CenterParent;
                dlg.ShowDialog();
            }
            return(true);
        }
        public bool EditServer(uint dwType)
        {
            ServerInfo oldserver = SelectedServer;

            if (oldserver != null)
            {
                using (FormNewServer dlg = new FormNewServer(oldserver, true))
                {
                    dlg.StartPosition = FormStartPosition.CenterParent;
                    dlg.ShowDialog();
                }
            }

            return(true);
        }