public Form1() { //이미지 불러오기 - 15개 imgList = new List<Image>(); for( int i = 0 ; i < 15 ; i++ ) { String tmpName = String.Format( "Card_{0:D2}.png", i ); Image tmpl = Image.FromFile( tmpName ); imgList.Add( tmpl ); } //카드 관리 cGM = new CGameManager( imgList ); InitializeComponent(); tmpBack = Image.FromFile( "layout.png" ); tmpChip = Image.FromFile( "chip.png" ); bPressed = 0; cardIndex = -1; }
public Form1() { //이미지 불러오기 - 15개 imgList = new List <Image>(); for (int i = 0; i < 15; i++) { String tmpName = String.Format("Card_{0:D2}.png", i); Image tmpl = Image.FromFile(tmpName); imgList.Add(tmpl); } //카드 관리 cGM = new CGameManager(imgList); InitializeComponent(); tmpBack = Image.FromFile("layout.png"); tmpChip = Image.FromFile("chip.png"); bPressed = 0; cardIndex = -1; }