private void Login() { client = new SF.ClientLibrary.SpaceClient(); var credentials = PredefinedIdShip; if (credentials == 0) { credentials = LogonDialog.Execute(client.GetShipRegistry()); } bool okay = credentials != 0 && client.Login(credentials); if (!okay) { Close(); return; } if (ControlMode.None != PredefinedControlMode) { btnMode.Visible = false; spaceGridControl.Mode = PredefinedControlMode; } else { spaceGridControl.Mode = ControlMode.Tactic; } spaceGridControl.Universe = client.Universe; spaceGridControl.WorldScale = client.Universe.Constants.DefaultScale; toolStrip.Visible = true; spaceGridControl.Visible = true; timerUpdate.Enabled = true; timerUpdate_Tick(this, EventArgs.Empty); }
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; } }