コード例 #1
0
        private void Stag_Select()
        {
            MemberDataContext mem          = new MemberDataContext();
            MyMessageBox      myMessageBox = new MyMessageBox();

            var innerJoinQuery = from Members in mem.Member
                                 join Information in mem.MemberGameInformation on Members.MemberName equals Information.MemberName
                                 where Information.MemberName == Player.getInstance().getID()
                                 select Information;

            //DB의 유저의 쫄 카드 정보 받아와서 Card객체 만들고 DeckList에 삽입
            foreach (var item in innerJoinQuery)
            {
                Stage = (int)item.GameStage;
                Phase = (int)item.GamePhase;
            }

            //MessageBox.Show("현재 "+ UserID + " 님의 게임 진행 상황은 Stage " + Stage + " - " + Phase + " 를 진행 중 입니다.");
            myMessageBox.SetText = "현재 " + UserID + " 님의 게임 진행 상황은 Stage " + Stage + " - " + Phase + " 를 \n진행 중 입니다.";
            myMessageBox.ShowDialog();

            SamGookStageSelect samgookStageSelect = new SamGookStageSelect();

            switch (Stage)
            {
            case 1:

                MainMenu.getInstance().frame.Navigate(samgookStageSelect);
                break;

            case 2:
                GoruelStageSelect goruelStageSelect = new GoruelStageSelect();
                MainMenu.getInstance().frame.Navigate(goruelStageSelect);
                break;

            case 3:
                ChosenStageSelect chosenStageSelect = new ChosenStageSelect();
                MainMenu.getInstance().frame.Navigate(chosenStageSelect);
                break;

            case 4:
                DarkageStageSelect darkageStageSelect = new DarkageStageSelect();
                MainMenu.getInstance().frame.Navigate(darkageStageSelect);
                break;

            default:
                MainMenu.getInstance().frame.Navigate(samgookStageSelect);
                break;
            }
        }
コード例 #2
0
 private void play_Click(object sender, RoutedEventArgs e)
 {
     if (check == true)
     {
         myface_save();
         SamGookStageSelect stageSel = new SamGookStageSelect();
         MainMenu.getInstance().frame.Content = stageSel;
         this.Close();
     }
     else
     {
         MyMessageBox messagebox = new MyMessageBox();
         messagebox.SetText = ("얼굴을 만들어주세요.");
         messagebox.ShowDialog();
     }
 }
コード例 #3
0
        private void SamGook_Click(object sender, RoutedEventArgs e)
        {
            SamGookStageSelect samGookStageSelect = new SamGookStageSelect();

            MainMenu.getInstance().frame.Navigate(samGookStageSelect);
        }