Beispiel #1
0
        private void startFrameNumericUpDown_ValueChanged(object sender, EventArgs e)
        {
            if (startFrameNumericUpDown.Value > endFrameNumericUpDown.Value)
            {
                m_bUpdateLogFRR             = false;
                endFrameNumericUpDown.Value = startFrameNumericUpDown.Value;
                m_bUpdateLogFRR             = true;
            }

            if (m_bUpdateLogFRR)
            {
                m_logView.SetFrameRecordRange((int)startFrameNumericUpDown.Value, (int)endFrameNumericUpDown.Value);
            }

            m_logView.m_startUM = null;
        }
Beispiel #2
0
        void SerializeInLogViewStates(SerializeState serializeState)
        {
            if (serializeState.LogViewStates == null)
            {
                return;
            }

            for (int i = 0; i < m_logViews.Count; i++)
            {
                LogView logView = m_logViews[i];
                LogViewSerializeState lvss;

                lock (logView.m_logData)
                {
                    if (i < serializeState.LogViewStates.Length)
                    {
                        lvss = serializeState.LogViewStates[i];

                        if ((m_logViews.Count > 1) && (lvss.SingleORDIColour != null))
                        {
                            logView.m_singleOrdiColour = lvss.SingleORDIColour;
                        }
                    }
                    else
                    {
                        lvss = serializeState.LogViewStates.Last();
                    }

                    if (!(logView.m_logData is SocketLogData))                          // this is only a temporary quick fix - fixing this properly will take some time
                    {
                        UserMarkerRDI    startURDI = GetFirstURDIMatching(lvss.StartUM, logView);
                        UserMarkerRDI    endURDI   = GetFirstURDIMatching(lvss.EndUM, logView);
                        FrameRecordRange frr       = logView.GetFrameRecordRange();
                        int startIdx = (startURDI != null) ? startURDI.m_uml.m_fr.Index : frr.StartIdx;
                        int endIdx   = (endURDI != null) ? endURDI.m_uml.m_fr.Index : frr.EndIdx;

                        logView.SetFrameRecordRange(Math.Min(startIdx, endIdx), Math.Max(startIdx, endIdx));

                        logView.m_startUM = (startURDI != null) ? startURDI.DisplayUserMarker : null;
                        logView.m_endUM   = (endURDI != null) ? endURDI.DisplayUserMarker : null;
                    }

                    foreach (Control lliControl in logListTableLayoutPanel.Controls)
                    {
                        LogListItem lli = (LogListItem)lliControl;
                        lli.UpdateContents();
                    }

                    SetUMTreeViewNodeColours();
                }
            }
        }