예제 #1
0
 private void ResyncMainViewPreview()
 {
     if (MainConversation.File.MessageList.Count > 0)
     {
         MainView.PreviewImage = MainConversation.RenderPreviewBox(MainView.CurrentLine);
     }
 }
예제 #2
0
        public void OnMsgLineChanged()
        {
            try
            {
                MainConversation.File.MessageList[MainConversation.MessageIndex].MessageLines[MainConversation.LineIndex
                ].SpokenText = MainView.CurrentLine;

                //TODO(Robin): Test for null here but count elsewhere, why?
                if (MainConversation.File.MessageList[MainConversation.MessageIndex] != null)
                {
                    MainView.PreviewImage = MainConversation.RenderPreviewBox(MainView.CurrentLine);
                }
            }
            catch
            {
                //TODO(Robin): ???
            }
        }