Exemple #1
0
 //Added by wj 20110111
 public void AddRelayNodeMsgChange(GeoSiteEventArgs args)
 {
     this.m_NetEntityData.AddRelayNodeAlone(args.RelayNodes);
 }
Exemple #2
0
 protected virtual bool OnGeoDeleteSiteMsg(GeoSiteEventArgs siteargs)
 {
     bool flag = false;
     if (this.GeoDeleteSiteEvent != null)
     {
         flag = this.GeoDeleteSiteEvent(siteargs);
     }
     return flag;
 }
Exemple #3
0
 protected virtual bool OnGeoUpdatePosInfoMsg(GeoSiteEventArgs e1, GeoCellEventArgs e2, GeoRepeaterEventArgs e3)
 {
     bool flag = false;
     bool flag2 = false;
     bool flag3 = false;
     if (this.GeoUpdateSitePosEvent != null)
     {
         flag = this.GeoUpdateSitePosEvent(e1);
     }
     if (this.GeoUpdateCellPosEvent != null)
     {
         flag2 = this.GeoUpdateCellPosEvent(e2);
     }
     if (this.GeoUpdateRepeaterPosEvent != null)
     {
         flag3 = this.GeoUpdateRepeaterPosEvent(e3);
     }
     return ((flag & flag2) & flag3);
 }
Exemple #4
0
 //Added by liangwenli 20110307
 public void ModifyRelayNodeMsgChange(GeoSiteEventArgs args)
 {
     this.m_NetEntityData.ModifyRelayNodes(args.RelayNodes);
 }
Exemple #5
0
 protected virtual bool OnGeoAddSiteMsg(GeoSiteEventArgs e, out List<GeoSite> sites, out List<GeoCell> cells)
 {
     sites = new List<GeoSite>();
     cells = new List<GeoCell>();
     return ((this.GeoAddSiteEvent != null) && this.GeoAddSiteEvent(e, out sites, out cells));
 }
Exemple #6
0
 public bool GeoUpdatePosInfoMsg(List<GeoSite> siteList, List<GeoCell> cellList, List<GeoRepeater> repeaterList)
 {
     GeoSiteEventArgs args = new GeoSiteEventArgs(siteList);
     GeoCellEventArgs args2 = new GeoCellEventArgs(cellList);
     GeoRepeaterEventArgs args3 = new GeoRepeaterEventArgs(repeaterList);
     return this.OnGeoUpdatePosInfoMsg(args, args2, args3);
 }
Exemple #7
0
 public void ModifySiteMsgChange(GeoSiteEventArgs args)
 {
     this.m_NetEntityData.ModifySites(args.SiteList);
 }
Exemple #8
0
 //Edited by liangwenli 20110307
 public void GeoAddSiteMsg(GeoSiteEventArgs addSiteArgs, out List<GeoSite> sites, out List<GeoCell> cells)
 {
     this.OnGeoAddSiteMsg(addSiteArgs, out sites, out cells);
 }
Exemple #9
0
 public bool GeoDeleteSiteMsg(List<GeoSite> siteList)
 {
     GeoSiteEventArgs siteargs = new GeoSiteEventArgs(siteList);
     return this.OnGeoDeleteSiteMsg(siteargs);
 }
Exemple #10
0
 public void DeleteSiteMsgChange(GeoSiteEventArgs args)
 {
     this.m_NetEntityData.DeleteSitesAloneByID(args.SiteList);
 }
Exemple #11
0
 //Added by liangwenli 20110307
 public void DeleteRelayMsgChange(GeoSiteEventArgs args)
 {
     this.m_NetEntityData.DeleteRelaysAloneByID(args.RelayNodes);
 }
Exemple #12
0
 private void RNCol_ModifyEvent(object sender, NERelayNodeEventArgs e)
 {
     if (sender.ToString() != "GIS")
     {
         GeoSiteEventArgs args = new GeoSiteEventArgs();
         foreach (RelayNode relayNode in e.RelayNode)
         {
             args.RelayNodes.Add(RelayNode.GetGeoNESite(relayNode));
             //RelayNode并没有tranceiver需要和它一起移动
             //List<Transceiver> tranceiversOfSite = this.m_TranceiverCol.GetTranceiversOfSite(site);
             //List<Transceiver> list2 = new List<Transceiver>();
             //foreach (Transceiver transceiver in tranceiversOfSite)
             //{
             //    list2.Add(transceiver);
             //}
             //foreach (Transceiver transceiver2 in list2)
             //{
             //    transceiver2.X = site.X + transceiver2.DeltaX;
             //    transceiver2.Y = site.Y + transceiver2.DeltaY;
             //    GeoCell item = new GeoCell();
             //    item = Transceiver.GetGeoNECell(transceiver2);
             //    args.TranceiverList.Add(item);
             //}
         }
         args.argSender = sender;
         if (this.m_GeoMsgChange != null)
         {
             this.m_GeoMsgChange.ModifyRelayNodeMsgChange(args);
             this.m_GeoMsgChange.MapRedraw();
         }
     }
 }
Exemple #13
0
 private void RNCol_DeleteEvent(object sender, NERelayNodeEventArgs e)
 {
     if (sender.ToString() != "GIS")
     {
         GeoSiteEventArgs args = new GeoSiteEventArgs();
         foreach (RelayNode relayNode in e.RelayNode)
         {
             args.RelayNodes.Add(RelayNode.GetGeoNESite(relayNode));
         }
         if (this.m_GeoMsgChange != null)
         {
             this.m_GeoMsgChange.DeleteRelayMsgChange(args);
             this.m_GeoMsgChange.MapRedraw();
         }
     }
 }
Exemple #14
0
 private void SiteCol_SiteModifyEvent(object sender, NESiteEventArgs e)
 {
     if (sender.ToString() != "GIS")
     {
         GeoSiteEventArgs args = new GeoSiteEventArgs();
         foreach (Site site in e.Site)
         {
             GeoSite geoNESite = Site.GetGeoNESite(site);
             args.SiteList.Add(geoNESite);
             List<Transceiver> tranceiversOfSite = this.m_TranceiverCol.GetTranceiversOfSite(site);
             List<Transceiver> list2 = new List<Transceiver>();
             foreach (Transceiver transceiver in tranceiversOfSite)
             {
                 list2.Add(transceiver);
             }
             foreach (Transceiver transceiver2 in list2)
             {
                 transceiver2.X = site.X + transceiver2.DeltaX;
                 transceiver2.Y = site.Y + transceiver2.DeltaY;
                 GeoCell item = new GeoCell();
                 item = Transceiver.GetGeoNECell(transceiver2);
                 args.TranceiverList.Add(item);
             }
         }
         args.argSender = sender;
         if (this.m_GeoMsgChange != null)
         {
             this.m_GeoMsgChange.ModifySiteMsgChange(args);
             this.m_GeoMsgChange.MapRedraw();
         }
     }
 }
Exemple #15
0
 private void SiteCol_SiteDeleteEvent(object sender, NESiteEventArgs e)
 {
     if (sender.ToString() != "GIS")
     {
         GeoSiteEventArgs args = new GeoSiteEventArgs();
         foreach (Site site in e.Site)
         {
             args.SiteList.Add(Site.GetGeoNESite(site));
         }
         if (this.m_GeoMsgChange != null)
         {
             this.m_GeoMsgChange.DeleteSiteMsgChange(args);
             this.m_GeoMsgChange.MapRedraw();
         }
     }
 }
Exemple #16
0
 public bool CollectDataAndDisplay()
 {
     this.GetNEproList();
     List<GeoSite> siteList = this.m_Editor.SetGeoSiteList();
     List<GeoCell> cellList = this.m_Editor.SetGeoCellList();
     if (this.m_NetEntityEvent != null)
     {
         GeoSiteEventArgs args = new GeoSiteEventArgs(siteList);
         GeoCellEventArgs args2 = new GeoCellEventArgs(cellList);
         this.m_NetEntityEvent.ModifySiteMsgChange(args);
         this.m_NetEntityEvent.ModifyCellMsgChange(args2);
         this.m_NetEntityEvent.SetGeoSiteDisplayStyle(this.m_Editor.GisDisplay.SiteDisPlayPara);
         this.m_NetEntityEvent.SetGeoCellDisplayStyle(this.m_Editor.GisDisplay.CellDisPlayPara);
         this.m_NetEntityEvent.MapRedraw();
     }
     if (!this.SetAllDisPlayControlValue())
     {
         MessageBoxUtil.ShowInfo(NEResource.NE_INVALID_INPUT);
         return false;
     }
     return true;
 }