Пример #1
0
        private void _OnCaretModeButtonClicked(object obj, EventArgs args)
        {
            Trace.Call(obj, args);

            try {
                _CaretMode = !_CaretMode;

                for (int i = 0; i < _Notebook.NPages; i++)
                {
                    ChatView chatView = _Notebook.GetChat(i);
                    chatView.OutputMessageTextView.CursorVisible = _CaretMode;
                }

                if (_CaretMode)
                {
                    _Notebook.CurrentChatView.OutputMessageTextView.HasFocus = true;
                }
                else
                {
                    _Entry.HasFocus = true;
                }
            } catch (Exception ex) {
                Frontend.ShowException(this, ex);
            }
        }
Пример #2
0
 public ChatView GetChat(ChatModel chatModel)
 {
     return(f_Notebook.GetChat(chatModel));
 }