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; } }
private void dToolStripMenuItem_Click(object sender, EventArgs e) { ResourceModule.GetInstance().UpdatePieceResource(new _3DPiece()); this.RefreshBoard(); }