protected override void unload() //退出时卸载数据 { if (app != null) { app.end(); } dateStart.EditValueChanged -= new DevExpress.Xpf.Editors.EditValueChangedEventHandler(dateStart_EditValueChanged); dateEnd.EditValueChanged -= new DevExpress.Xpf.Editors.EditValueChangedEventHandler(dateEnd_EditValueChanged); DataGenerator.StopGenData(); }
internal override void unload() { if (curcontrol != null) { (curcontrol as BaseIPanel).unload(); } if (root.grdContent.Children.Contains(curcontrol)) { root.grdContent.Children.Remove(curcontrol); } DataGenerator.StopGenData(); curcontrol = null; }
protected override void unload() //退出时卸载数据 { if (app != null) { app.end(); } root.distnet.scene.config.pickEnable = false; root.distnet.scene.Picked -= new EventHandler <Earth.PickEventArgs>(scene_Picked); DataGenerator.StopGenData(); root.distnet.scene.config.tooltipMoveEnable = false; root.earth.objManager.isUseXModel = true; }
protected override void unload() //退出时卸载数据 { if (app != null) { app.end(); } if (panel != null && root.grdContent.Children.Contains(panel)) { root.grdContent.Children.Remove(panel); } root.ShowClock(false); //显示区域 WpfEarthLibrary.pLayer arealayer = root.earth.objManager.zLayers[DistNetLibrary.EObjectCategory.区域类.ToString()]; arealayer.logicVisibility = false; root.earth.UpdateModel(); DataGenerator.StopGenData(); }