Example #1
0
 public static void GetOneRepeater(string name, CollectionsModel model)
 {
     RepeaterCollection repeaterColl = model.RepeaterColl;
     List<int> repeaterIDList = new List<int>();
     Repeater repeaterByName = new Repeater();
     if (repeaterColl.GetRepeaterByName(name) != null)
     {
         repeaterByName = repeaterColl.GetRepeaterByName(name);
         int iD = repeaterByName.ID;
         repeaterIDList.Add(iD);
     }
     ViewNetEntityEventArgs args = new ViewNetEntityEventArgs(null, null, repeaterIDList,null);
     INetEntity gisINetEntity = model.GisINetEntity;
     if (repeaterIDList.Count > 0)
     {
         GeoXYPoint geoXYPoiny = new GeoXYPoint(repeaterByName.Parent.Parent.X + repeaterByName.DX, repeaterByName.Parent.Parent.Y + repeaterByName.DY);
         gisINetEntity.MoveMapTo(geoXYPoiny);
         gisINetEntity.MapRedraw();
     }
     else
     {
         gisINetEntity.MapRedraw();
     }
 }
Example #2
0
 public static void GetOneSite(string name, CollectionsModel model)
 {
     SiteCollection siteColl = model.SiteColl;
     List<int> siteIDList = new List<int>();
     Site siteByName = new Site();
     if (siteColl.GetSiteByName(name) != null)
     {
         siteByName = siteColl.GetSiteByName(name);
         int iD = siteByName.ID;
         siteIDList.Add(iD);
     }
     ViewNetEntityEventArgs args = new ViewNetEntityEventArgs(siteIDList, null, null,null);
     INetEntity gisINetEntity = model.GisINetEntity;
     if (siteIDList.Count > 0)
     {
         GeoXYPoint geoXYPoiny = new GeoXYPoint(siteByName.X, siteByName.Y);
         gisINetEntity.MoveMapTo(geoXYPoiny);
         gisINetEntity.MapRedraw();
     }
     else
     {
         gisINetEntity.MapRedraw();
     }
 }
Example #3
0
 public static void GetOneCell(string name, CollectionsModel model)
 {
     TranceiverCollection tranceiverColl = model.TranceiverColl;
     List<short> cellIDList = new List<short>();
     Transceiver tranceiverByName = new Transceiver();
     if (tranceiverColl.GetTranceiverByName(name) != null)
     {
         tranceiverByName = tranceiverColl.GetTranceiverByName(name);
         short iD = tranceiverByName.ID;
         cellIDList.Add(iD);
     }
     ViewNetEntityEventArgs args = new ViewNetEntityEventArgs(null, cellIDList, null,null);
     INetEntity gisINetEntity = model.GisINetEntity;
     if (cellIDList.Count > 0)
     {
         GeoXYPoint geoXYPoiny = new GeoXYPoint(tranceiverByName.X, tranceiverByName.Y);
         gisINetEntity.MoveMapTo(geoXYPoiny);
         gisINetEntity.MapRedraw();
     }
     else
     {
         gisINetEntity.MapRedraw();
     }
 }
Example #4
0
 //Added by liangwenli 20110307
 public static void GetOneRelay(string name, CollectionsModel model)
 {
     RNCollection rnColl = model.RNColl;
     List<int> rnIDList = new List<int>();
     RelayNode rnByName = new RelayNode();
     if (rnColl.GetRelayNodeByName(name) != null)
     {
         rnByName = rnColl.GetRelayNodeByName(name);
         int iD = rnByName.ID;
         rnIDList.Add(iD);
     }
     ViewNetEntityEventArgs args = new ViewNetEntityEventArgs(null, null, null,rnIDList);
     INetEntity gisINetEntity = model.GisINetEntity;
     if (rnIDList.Count > 0)
     {
         GeoXYPoint geoXYPoiny = new GeoXYPoint(rnByName.X, rnByName.Y);
         gisINetEntity.MoveMapTo(geoXYPoiny);
         gisINetEntity.MapRedraw();
     }
     else
     {
         gisINetEntity.MapRedraw();
     }
 }
Example #5
0
 public void ViewEntityEventHandleMsgChange(ViewNetEntityEventArgs args)
 {
     this.OnViewEntityEventHandleMsg(args);
 }
Example #6
0
 public void SelectNetEntityMsgChange(ViewNetEntityEventArgs arg)
 {
     this.m_NetEntityOperator.SelectSiteEntity(arg.m_SiteIDList);
     this.m_NetEntityOperator.SelectTranceiverEntity(arg.m_CellIDList);
     this.m_NetEntityOperator.SelectRepeaterEntity(arg.m_RepeaterIDList);
 }
Example #7
0
 protected virtual void OnViewEntityEventHandleMsg(ViewNetEntityEventArgs args)
 {
     if (this.ViewEntityEvent != null)
     {
         this.ViewEntityEvent(args);
     }
 }
Example #8
0
 private void GisINetEntity_ViewEntityEvent(ViewNetEntityEventArgs args)
 {
     this.ShowSiteTable(args.m_SiteIDList);
 }