コード例 #1
0
 public override void Action1(WindowState state)
 {
     var ankimonState = (AnkimonState)state;
     ankimonState.GetSelectedItem().IsSelected = false;
     ankimonState._subState = new SentakuNashiState();
     state.Invalidate();
 }
コード例 #2
0
 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();
 }
コード例 #3
0
            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();
            }