예제 #1
0
파일: Client.cs 프로젝트: imdonix/chess
        //Open
        public Client(Player a, GetPlayerMove b, FindMatch c, RichTextBox d, ResetGame e, MainForm f)
        {
            player = a;
            wc     = new WebClient();

            mainform      = f;
            getplayermove = b;
            findmatch     = c;
            output        = d;
            resetgame     = e;

            MatchFinder = new Thread(FindQueue);
            MoveFinder  = new Thread(GetOpponentMove);
        }
예제 #2
0
파일: MainForm.cs 프로젝트: imdonix/chess
        //LOAD
        private void NewForm_Load(object sender, EventArgs e)
        {
            graphics      = Screen.CreateGraphics();
            unitdestroly  = OnUnitDestroly;
            sakkfor       = OnSakkFor;
            findmatch     = MatchFound;
            getplayermove = OppMove;
            resetgame     = Reset;
            endform       = new GEndForm(this);
            label5.Text  += version;

            this.Opacity = 0;
            nameinput    = new Chess.NameInput(this);
            nameinput.Show();
        }