Exemple #1
0
        private void Login()
        {
            client = new SF.ClientLibrary.SpaceClient();
            var credentials = LogonDialog.Execute(client.GetShipNames());

            if (credentials == null)
            {
                Close();
            }
            else
            {
                client.Login(credentials.Nation, credentials.ShipName);
                helm = client.GetHelm();
                Text = helm.Name;
                spaceGridControl.OwnShip    = helm;
                spaceGridControl.WorldScale = Catalog.Instance.DefaultScale;
                scaleControl.Value          = Catalog.Instance.DefaultScale;;
                tableLayoutPanel.Visible    = true;
                timerUpdate.Enabled         = true;
            }
        }