Exemplo n.º 1
0
 private void btnRealTimeReport_Click(object sender, EventArgs e)
 {
     ThreeStateTreeNode myNode = MainForm.myCarList.tvList.getNodeById(this.sCarID);
     if (myNode != null)
     {
         MainForm.myCarList.tvList.SetSelectedNodes(myNode);
         ThreeStateTreeNode node2 = MainForm.myCarList.tvTrackCar.getNodeById(this.sCarID);
         if (node2 != null)
         {
             MainForm.myCarList.tvTrackCar.SetSelectedNodes(node2);
         }
         itmRealTimeReport report2 = new itmRealTimeReport(CmdParam.OrderCode.实时监控) {
             Text = "实时监控"
         };
         report2.ShowDialog();
     }
 }
Exemplo n.º 2
0
        private void btnRealTimeReport_Click(object sender, EventArgs e)
        {
            ThreeStateTreeNode myNode = MainForm.myCarList.tvList.getNodeById(this.sCarID);

            if (myNode != null)
            {
                MainForm.myCarList.tvList.SetSelectedNodes(myNode);
                ThreeStateTreeNode node2 = MainForm.myCarList.tvTrackCar.getNodeById(this.sCarID);
                if (node2 != null)
                {
                    MainForm.myCarList.tvTrackCar.SetSelectedNodes(node2);
                }
                itmRealTimeReport report2 = new itmRealTimeReport(CmdParam.OrderCode.实时监控)
                {
                    Text = "实时监控"
                };
                report2.ShowDialog();
            }
        }