예제 #1
0
        public override void Select()
        {
            ARun    recentARun = ProjectInfo.CurrentARun;
            RunWord recentWord = ProjectInfo.CurrentRunWord;

            ProjectInfo.CurrentRunWord = this;
            UpdateBackground();

            if (recentARun != null && recentARun.IsImage && recentARun != ProjectInfo.CurrentARun)
            {
                recentARun.UpdateBackground();
            }

            if (recentWord == null)
            {
                return;
            }
            recentWord.UpdateBackground();

            if (ProjectInfo.CurrentState == State.Play && !recentWord.IsSentenceSelected)
            {
                foreach (RunWord prev in recentWord.PreviousWordsInSentence)
                {
                    prev.UpdateBackground();
                }
            }
            Word.Content.Changed = true;
        }
예제 #2
0
 private void MergeWith(RunWord nextRun)
 {
     Word.MergeWith(nextRun.Word);
     Inlines.Remove(nextRun);
     Text = Word.OriginalText;
     UpdateBackground();
     //UpdateSegmentedBackground();
 }
예제 #3
0
        public void MergeWithPrev()
        {
            RunWord prevRun = PreviousInline as RunWord;

            if (prevRun == null)
            {
                return;
            }
            prevRun.MergeWith(this);
        }
예제 #4
0
        public void MergeWithNext()
        {
            RunWord nextRun = NextInline as RunWord;

            if (nextRun == null)
            {
                return;
            }
            MergeWith(nextRun);
        }