示例#1
0
        private void btnFinish_Click(object sender, EventArgs e)
        {
            Properties.Settings.Default.ForceVersion = "Auto";
            if (radioButton1.Visible)
            {
                Properties.Settings.Default.ForceVersion = "Invalid";
                if (radioButton1.Checked)
                {
                    Properties.Settings.Default.ForceVersion = "2001";
                }
                else if (radioButton2.Checked)
                {
                    Properties.Settings.Default.ForceVersion = "1999-nodrm";
                }
                else
                {
                    Close();
                }
            }
            Properties.Settings.Default.GameClientDirectory = gameClientDirectory;
            Properties.Settings.Default.Save();

            LauncherForm launcher = new LauncherForm();

            launcher.FormClosed += (s, args) => Close();
            launcher.Show();

            Hide();
        }
示例#2
0
        public ClientForm(Process gameProcess, LauncherForm launcherForm)
        {
            InitializeComponent();

            this.gameProcess  = gameProcess;
            this.launcherForm = launcherForm;

            tcpClient = new TcpClient();
            //listenerThread = new Thread(ServerListener);
        }
示例#3
0
        public ClientForm(Process gameProcess, LauncherForm launcherForm)
        {
            InitializeComponent();

            this.gameProcess = gameProcess;
            this.launcherForm = launcherForm;

            tcpClient = new TcpClient();
            //listenerThread = new Thread(ServerListener);
        }