private void CheckUser(object sender, EventArgs e) { CPK cpk = new CPK(this,(CheckUser)sender); cpk.Enabled_Button((CheckUser)sender); cpk.Network = true; cpk.ShowDialog(); }
/// <summary> /// ��P�ᵹ���a�A�ݬO�_�n�Y �I �b �L�� �J /// </summary> internal virtual void toUser(Brand brand, bool chow, bool pong, bool kong, bool darkkong, bool win) { CPK cpk = new CPK(this, brand); CheckBrands c = new CheckBrands(brand, NowPlayer_removeTeam); CheckBrands w = new CheckBrands(brand, all.NowPlayer); cpk.Enabled_Button(chow, pong, kong, darkkong, win); if (chow || pong || kong || win || darkkong) cpk.ShowDialog(); }
/// <summary> /// ��P�ᵹ���a�A�ݬO�_�n�Y �I �b �L�� �J /// </summary> internal virtual void toUser(CheckUser check) { CPK cpk = new CPK(this, check); CheckBrands c = new CheckBrands(check.Brand, NowPlayer_removeTeam); CheckBrands w = new CheckBrands(check.Brand, all.NowPlayer); cpk.Enabled_Button(check.Chow, check.Pong, check.Kong, check.DarkKong, check.Win); if (check.Chow || check.Pong || check.Kong || check.Win || check.DarkKong) cpk.ShowDialog(); }
internal void getBrand(Brand brand) { if (myTurn) { CPK cpk = new CPK(this, brand); cpk.Network = true; cpk.Checkuser = checkuser; CheckBrands c = new CheckBrands(brand, NowPlayer_removeTeam); CheckBrands w = new CheckBrands(brand, all.NowPlayer); cpk.Enabled_Button(checkuser.Chow, checkuser.Pong, checkuser.Kong, checkuser.DarkKong, checkuser.Win); //if (checkuser.Chow || checkuser.Pong || checkuser.Kong || checkuser.Win || checkuser.DarkKong) cpk.ShowDialog(); chat.SendObject(cpk.Checkuser); } else if (iAmServer) { chat.SendObject(all); makeBrand(brand); } }