コード例 #1
0
        private void UpdatePieceSkin(int skin)
        {
            switch (skin)
            {
            case 0: ResourceModule.GetInstance().UpdatePieceResource(new BasicPiece()); break;

            case 1: ResourceModule.GetInstance().UpdatePieceResource(new ColorfulPiece()); break;

            case 2: ResourceModule.GetInstance().UpdatePieceResource(new _3DPiece()); break;

            default:
                ResourceModule.GetInstance().UpdatePieceResource(new BasicPiece()); break;
            }
        }
コード例 #2
0
 private void dToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ResourceModule.GetInstance().UpdatePieceResource(new _3DPiece());
     this.RefreshBoard();
 }