private void ResyncMainViewPreview() { if (MainConversation.File.MessageList.Count > 0) { MainView.PreviewImage = MainConversation.RenderPreviewBox(MainView.CurrentLine); } }
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): ??? } }