Пример #1
0
        void MessagesReset(object sender, Fix.MessageCollection.MessageEvent ev)
        {
            if (InvokeRequired)
            {
                BeginInvoke(new MethodInvoker(() => MessagesReset(sender, ev)));
                return;
            }

            Reload();
        }
Пример #2
0
        void MessageAdded(object sender, Fix.MessageCollection.MessageEvent ev)
        {
            if (InvokeRequired)
            {
                BeginInvoke(new MethodInvoker(() => MessageAdded(sender, ev)));
                return;
            }

            try
            {
                _messageTable.BeginLoadData();
                AddMesage(ev.Message);
                _messageGrid.RowCount = _messageView.Count;
            }
            finally
            {
                _messageTable.EndLoadData();
            }
            ScrollToBottom();
        }