Beispiel #1
0
 public MapPath(itmPreSetPath.PreType type, DataTable dtPath)
 {
     this.iRadius = 500;
     this.InitializeComponent();
     this.preType = type;
     this.dtPath = dtPath;
 }
Beispiel #2
0
 public itmPreSetRegion(itmPreSetPath.PreType type)
 {
     this.InitializeComponent();
     this.preType = type;
 }
Beispiel #3
0
        private void OpenDialog(string menuTag, string menuName)
        {
            CarForm module = null;
            switch (menuTag.ToLower())
            {
                //添加打开视频窗口 2013.12.16 周立山
                //case "itmcarvideo":
                //    {
                //        if (_carVideoForm != null)
                //        {
                //            if (!_carVideoForm.IsDisposed)
                //            {
                //                try
                //                {
                //                    _carVideoForm.Close();
                //                }
                //                catch { }
                //            }
                //            _carVideoForm = null;
                //        }
                //        _carVideoForm = new CarVideoForm(myCarList.SelectedCarId);
                //        _carVideoForm.Show();
                //    }
                //    break;
                case "itmquery1":
                    this.RealTimePlaceQuery();
                    break;

                case "itmimportreport":
                    this.StressWatchQuery();
                    break;

                case "itmcarplaytrack":
                    this.ContrailReturnQuery();
                    break;

                case "batchsetareaalarm":
                    {
                        itmSetRegionAlarmEx ex = new itmSetRegionAlarmEx(CmdParam.OrderCode.区域报警设置)
                        {
                            Text = menuName
                        };
                        ex.ShowDialog();
                        ex.Dispose();
                        ex = null;
                        break;
                    }
                case "itmshowoutregion":
                    myMap.execShowAlarmRegion(Client.Map.ShowRegionType.越出区域);
                    break;

                case "itmshowinregion":
                    myMap.execShowAlarmRegion(Client.Map.ShowRegionType.进入区域);
                    break;

                case "itmpresetregion":
                    {
                        m2mPreSetRegion region = new m2mPreSetRegion(itmPreSetPath.PreType.预设报警区域)
                        {
                            Text = menuName
                        };
                        region.ShowDialog();
                        region.Dispose();
                        region = null;
                        break;
                    }
                case "itmshowmultioutreg":
                    myMap.execShowAlarmRegion(Map.ShowRegionType.多功能越出区域);
                    break;

                case "itmshowmultiinreg":
                    myMap.execShowAlarmRegion(Map.ShowRegionType.多功能进入区域);
                    break;

                case "itmpresetmultireg":
                    {
                        itmPreSetRegion region2 = new itmPreSetRegion(itmPreSetPath.PreType.预设多功能报警区域)
                        {
                            Text = menuName
                        };
                        region2.ShowDialog();
                        region2.Dispose();
                        region2 = null;
                        break;
                    }
                case "itmpresetstation":
                    {
                        itmPreSetStation itmPreSetStation = new itmPreSetStation
                        {
                            Text = menuName
                        };
                        itmPreSetStation.ShowDialog();
                        itmPreSetStation.Dispose();
                        break;
                    }
                case "itmshowpath":
                    myMap.execShowPath();
                    break;

                case "itmclearpath":
                    myMap.execClearPath();
                    break;

                case "itmpresetpath":
                    {
                        itmPreSetPath path = new itmPreSetPath(itmPreSetPath.PreType.预设报警路线)
                        {
                            Text = menuName
                        };
                        path.ShowDialog();
                        path.Dispose();
                        path = null;
                        break;
                    }
                case "itmzbnavigation":
                    MessageBox.Show("请在地图上选择目的地!");
                    myMap.setNavigationTool();
                    break;

                case "itmzbdistributary":
                    MessageBox.Show("请在地图上选择目的地!");
                    myMap.setDistributaryTool();
                    break;

                case "itmsetcarinit":
                    {
                        itmSetCarInit init = new itmSetCarInit("车台初始化参数设置")
                        {
                            Text = menuName
                        };
                        init.ShowDialog();
                        init.Dispose();
                        init = null;
                        break;
                    }
                case "itmclearcartrack":
                    myMap.execDeleteCar(myCarList.SelectedCarId);
                    myCarList.setCarOffline(myCarList.SelectedCarId);
                    break;

                case "itmcardetail":
                    {
                        itmCarDetail detail = new itmCarDetail
                        {
                            Text = menuName
                        };
                        detail.ShowDialog();
                        detail.Dispose();
                        detail = null;
                        break;
                    }
                default:
                    module = this.GetModule(menuTag, menuName);
                    break;
            }
            if (module != null)
            {
                module.ShowDialog();
                module.Dispose();
                module = null;
            }
            if (((Process.GetCurrentProcess().WorkingSet64 / 1024) / 1000) > 1000)
            {
                GC.Collect();
                GC.Collect();
                GC.Collect();
                if (base.WindowState == FormWindowState.Normal)
                {
                    base.WindowState = FormWindowState.Minimized;
                    base.WindowState = FormWindowState.Normal;
                }
                else if (base.WindowState == FormWindowState.Maximized)
                {
                    base.WindowState = FormWindowState.Minimized;
                    base.WindowState = FormWindowState.Maximized;
                }
            }
        }
Beispiel #4
0
 public MapPath(itmPreSetPath.PreType type)
 {
     this.iRadius = 500;
     this.InitializeComponent();
     this.preType = type;
 }
Beispiel #5
0
 public m2mMapPath(itmPreSetPath.PreType type)
 {
     this.InitializeComponent();
     this.preType = type;
 }