コード例 #1
0
        private void buttonStartTrace_Click(object sender, EventArgs e)
        {
            using (DataBus dataBus = GetDataBus())
            {
                debugEntity = new DebugEntity();
                debugEntity.OnTraceChanged += new TraceChangedHandler(DoTraceChanged);
                debugEntity.InitStack(dataBus);

                treeViewTraces.Nodes.Clear();
                treeViewTraces.Nodes.Add(new TreeNode());
                ShowTrace(debugEntity.TopRAD, treeViewTraces.Nodes[0]);
                currentRADNode = treeViewTraces.Nodes[0];

                //Set the current RAD node to the leaf node.
                while (currentRADNode.Nodes.Count > 0)
                {
                    currentRADNode = currentRADNode.Nodes[0];
                }
                treeViewTraces.SelectedNode = currentRADNode;
                clientEverHeld   = false;
                needHoldSMClient = false;
                if (dataSyncThread.ThreadState == System.Threading.ThreadState.Suspended)
                {
                    dataSyncThread.Resume();
                }
            }
        }
コード例 #2
0
        public DebugForm()
        {
            InitializeComponent();

            DebugEntity entity = new DebugEntity();

            entity.OnTraceChanged += new TraceChangedHandler(DoTraceChanged);
            //entity.TestBatch(@"C:\Users\daizhen\VS Projects\2008\SM.Smorgasbord\SM.Smorgasbord.Debuger\TestFiles\sample_2.txt");
        }
コード例 #3
0
        private void buttonStartTrace_Click(object sender, EventArgs e)
        {
            string sessionId           = textBoxCookieId.Text.Trim();
            string authorizationString = textBoxAuthorization.Text.Trim();

            ConnectionInfo    currentConnectionInfo = comboBoxServer.SelectedItem as ConnectionInfo;
            SessionCache      sessionCache          = new SessionCache();
            ConnectionSession connectionSession     = sessionCache[currentConnectionInfo];
            DataBus           dataBus = connectionSession.GetDataBus(sessionId, authorizationString);

            debugEntity = new DebugEntity();
            debugEntity.OnTraceChanged += new TraceChangedHandler(DoTraceChanged);
            debugEntity.InitStack(dataBus);

            treeViewTraces.Nodes.Clear();
            treeViewTraces.Nodes.Add(new TreeNode());
            ShowTrace(debugEntity.TopRAD, treeViewTraces.Nodes[0]);
            currentRADNode = treeViewTraces.Nodes[0];
            while (currentRADNode.Nodes.Count > 0)
            {
                currentRADNode = currentRADNode.Nodes[0];
            }
            treeViewTraces.SelectedNode = currentRADNode;
        }