Exemple #1
0
        private void pBox_Click(object sender, EventArgs e)
        {
            PictureBox pbox          = sender as PictureBox;
            string     strSelectText = string.Empty;

            switch (pbox.Name)
            {
            case "pBox1":
                strSelectText = enBossName.보검.ToString();
                break;

            case "pBox2":
                strSelectText = enBossName.신혜.ToString();
                break;

            case "pBox3":
                strSelectText = enBossName.해인.ToString();
                break;

            case "pBox4":
                strSelectText = enBossName.보영.ToString();
                break;

            default:
                break;
            }


            int iTotalCount = Enum.GetValues(typeof(enClassName)).Length;

            if (iTotalCount > iPlayercount)
            {
                enClassName enName = (enClassName)iPlayercount;

                _dic.Add(enName.ToString(), strSelectText);

                fUiDisplay(iTotalCount, enName.ToString());
                fDataGridViewDisplay();

                iPlayercount++;
            }
            else
            {
                // 끝났습니다.
                lblPlayerName.Text = "투표를 완료하였습니다.";
            }

            //pBox1.Image = Winform17Dictionary.Properties.Resources._1;

            //_dic.Add("", strSelectText);



            //_strlist.Add(strSelectText);
            //fUiDisplay();
            //fDataGridViewDisplay();

            //_arList.Add(strSelectText);
            //_arList.Add(1);
        }
Exemple #2
0
        private void pbox_Click(object sender, EventArgs e)
        {
            PictureBox pbox = sender as PictureBox;

            string strSelectText = string.Empty;

            switch (pbox.Name)
            {
            case "pbox1":
                strSelectText = enBossName.보검.ToString();
                break;

            case "pbox2":
                strSelectText = enBossName.신혜.ToString();
                break;

            case "pbox3":
                strSelectText = enBossName.해인.ToString();
                break;

            case "pbox4":
                strSelectText = enBossName.보영.ToString();
                break;
            }

            //_strList.Add(strSelectText);
            //_arList.Add(strSelectText);


            // 진행하는 인원이 마지막 인원이 아닐 경우

            int iTotalCount = Enum.GetValues(typeof(enClassName)).Length;

            if (iTotalCount > iPlayerCount)
            {
                enClassName enName = (enClassName)iPlayerCount;

                _dic.Add(enName.ToString(), strSelectText);

                fUIDisplay(iTotalCount, enName.ToString());

                iPlayerCount++; // 화면에 보여준뒤에 다음 사람에게로...
            }
            else
            {
                lblPlayerName.Text = "투표를 완료 하였습니다.";
            }
            //pbox1.Image = DictionaryTest.Properties.Resources._1;  /picturebox image 수정
        }