예제 #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);
        }