Example #1
0
        public AttackGame()
        {
            InitializeComponent();


            Combo_GameMode.Items.Add("スコアアタック");
            Combo_GameMode.Items.Add("タイムアタック");
            Combo_GameMode.Items.Add("練習モード");


            if (!Application.Current.Properties["u_id"].ToString().Equals("guest")) //user,guest確認
            {
                user_id = int.Parse(Application.Current.Properties["u_id"].ToString());
            }

            wiimote.WiimoteChanged += OnWiimoteChanged;


            Refresh rf = new Refresh(this.Combo_Select);


            Application.Current.Properties["setuser_id"] = user_id;

            Application.Current.Properties["gamemodename"] = "スコアアタック";

            Application.Current.Properties["hantei"] = "制限時間";
            Application.Current.Properties["tani"]   = "秒";


            Window setting_window = new AttackGameSetting(rf);

            setting_window.Title = "GameSetting";
            setting_window.ShowDialog();


            dispatcharTimer          = new DispatcherTimer(DispatcherPriority.Normal);
            dispatcharTimer.Interval = new TimeSpan(0, 0, 1);
            dispatcharTimer.Tick    += new EventHandler(dispatcharTimer_Tick);

            dispatcharTimer11          = new DispatcherTimer();
            dispatcharTimer11.Interval = new TimeSpan(0, 0, 1);
            dispatcharTimer11.Tick    += dispatcharTimer11_Tick;
        }
Example #2
0
        void SetDialog_Click(object sender, RoutedEventArgs e)  //設定のダイアログ
        {
            ScoreFlag    = false;
            TimeFlag     = false;
            PracticeFlag = false;

            Refresh rf = new Refresh(this.Combo_Select);


            Application.Current.Properties["setuser_id"] = user_id;

            Application.Current.Properties["gamemodename"] = "スコアアタック";

            Application.Current.Properties["hantei"] = "制限時間";
            Application.Current.Properties["tani"]   = "秒";


            Window setting_window = new AttackGameSetting(rf);

            setting_window.Title = "GameSetting";
            setting_window.ShowDialog();
        }