private void treeView1_AfterSelect(object sender, TreeViewEventArgs e) { if (treeView1.SelectedNode == null) { return; } if (treeView1.SelectedNode.Level == 2) { listBox1.Items.Clear(); m_Preperty.Clear(); propertyGrid1.Refresh(); int nID = int.Parse(treeView1.SelectedNode.Tag.ToString()); m_nNowModelID = nID; int nSuccess = 0; m_RecordPlayer.GetObjInfo(nID, out nSuccess); if (nSuccess != 0) { m_Slider.ListClear(); int nTime = 0; int nInfo = 0; m_RecordPlayer.GetFirstEventTime(out nTime, out nInfo); while (nTime > -2) { m_Slider.SetModelTime(nTime, nInfo); m_RecordPlayer.GetNextEventTime(out nTime, out nInfo); } m_Slider.Invalidate(); m_Slider.Update(); } } }