private void ChooseClient() { client = (Client)uxClients.SelectedItem; if (client != null) { Version.Set(client.Version, client.Process); } newClientChooser.Dispose(); }
private void ChooseClient() { options.UseOT = uxUseOT.Checked; LoginServer ls = null; if (options.UseOT) { string[] split = uxLoginServer.Text.Split(new char[] { ':' }, StringSplitOptions.RemoveEmptyEntries); if (split.Length == 2) { ls = new LoginServer(split[0].Trim(), short.Parse(split[1])); } else { ls = new LoginServer(uxLoginServer.Text.Trim(), 7171); } } client = ClientChooserBase.ChooseClient(options, uxClients.SelectedItem, ls); newClientChooser.Dispose(); }