Exemple #1
0
        private void ClientError(object sender, TWSClientErrorEventArgs e)
        {
            var i = 0;

            logGrid.Rows.Insert(_logGridRow);
            logGrid[_logGridRow, i]      = new SourceGrid.Cells.Cell(DateTime.Now);
            logGrid[_logGridRow, i].View = _defaultViewClearType;
            logGrid[_logGridRow, 1]      = new SourceGrid.Cells.Cell(e.RequestId);
            logGrid[_logGridRow, 2]      = new SourceGrid.Cells.Cell(e.Error.Code);
            logGrid[_logGridRow, 3]      = new SourceGrid.Cells.Cell(e.Error.Message);
        }
Exemple #2
0
        private void ClientError(object sender, TWSClientErrorEventArgs e)
        {
            if (InvokeRequired)
            {
                BeginInvoke(new MethodInvoker(() => ClientError(sender, e)));
                return;
            }

            var i = 0;

            logGrid.Rows.Insert(_logGridRow);
            logGrid[_logGridRow, i]      = new SourceGrid.Cells.Cell(DateTime.Now);
            logGrid[_logGridRow, i].View = _defaultViewClearType;
            logGrid[_logGridRow, 1]      = new SourceGrid.Cells.Cell(e.RequestId);
            logGrid[_logGridRow, 2]      = new SourceGrid.Cells.Cell(e.Error.Code);
            logGrid[_logGridRow, 3]      = new SourceGrid.Cells.Cell(e.Error.Message);
        }