Exemple #1
0
        private void ChooseClient()
        {
            options.UseOT = uxUseOT.IsExpanded;
            LoginServer ls = null;

            if (options.UseOT)
            {
                string[] split = uxLoginServer.Text.Split(new char[] { ':' });
                ls = new LoginServer(split[0], short.Parse(split[1]));
            }
            client = ClientChooserBase.ChooseClient(options, uxClients.SelectedItem, ls);
            newClientChooser.Close();
        }
Exemple #2
0
        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();
        }