Ejemplo n.º 1
0
		// (0.2.0.2)
		#region *Order削除時
		private void MyDocument_OrderRemoved(object sender, GrandMutus.Data.OrderEventArgs e)
		{
			this.CurrentPhase = PlayingPhase.Talking;
			MyQuestionPlayer.Close();
			this.CurrentQuestion = null;
		}
Ejemplo n.º 2
0
 // コマンドを使おうと思ったけど,TextBoxのTextが変更になったときに使えるコマンドのトリガがなかったので,
 // イベントで頑張ることにする.
 // (0.1.0.2)
 static bool HitFilter(GrandMutus.Data.ISong song, string filter)
 {
     // とりあえず大文字小文字を判別する.
     return song.Title.Contains(filter) || song.Artist.Contains(filter);
 }
Ejemplo n.º 3
0
		// (0.2.0.2)
		#region *Order追加時
		private void MyDocument_OrderAdded(object sender, GrandMutus.Data.OrderEventArgs e)
		{
			var q_id = e.QuestionID;
			if (q_id.HasValue)
			{
				var nextQuestion = MyDocument.Questions.Get(q_id.Value);
				this.CurrentQuestion = nextQuestion;
				MyQuestionPlayer.Open(nextQuestion);
				this.CurrentPhase = PlayingPhase.Ready;
			}
		}