public override void Action1(WindowState state) { var ankimonState = (AnkimonState)state; ankimonState.GetSelectedItem().IsSelected = false; ankimonState._subState = new SentakuNashiState(); state.Invalidate(); }
public override void Action0(WindowState state) { if (null == state.CurrentItem) return; var wordCard = state.CurrentItem as WordCard; if (null == wordCard) return; wordCard.IsSelected = true; ((AnkimonState)state)._subState = new SentakuAriState(); state.Invalidate(); }
public override void Action0(WindowState state) { if (null == state.CurrentItem) return; var wordCard = state.CurrentItem as WordCard; if (null == wordCard) return; var ankimonState = (AnkimonState)state; var item = ankimonState.GetSelectedItem(); if (item.Text == wordCard.Text) return; item.IsSelected = false; ankimonState.場所の入れ換え(wordCard, item, TimeSpan.FromMilliseconds(200d)); ankimonState._subState = new SentakuNashiState(); state.Invalidate(); }