Exemplo n.º 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;
        }
Exemplo n.º 2
0
 private void MergeWith(RunWord nextRun)
 {
     Word.MergeWith(nextRun.Word);
     Inlines.Remove(nextRun);
     Text = Word.OriginalText;
     UpdateBackground();
     //UpdateSegmentedBackground();
 }
Exemplo n.º 3
0
        public void MergeWithPrev()
        {
            RunWord prevRun = PreviousInline as RunWord;

            if (prevRun == null)
            {
                return;
            }
            prevRun.MergeWith(this);
        }
Exemplo n.º 4
0
        public void MergeWithNext()
        {
            RunWord nextRun = NextInline as RunWord;

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