Example #1
0
 public int BindAnalyGeoXYPointSymbolLayer(AnalyGeoXYPointSymbolEventArgs args)
 {
     GeoUserVectorData data;
     int key = -1;
     IGeoOperator op = null;
     bool flag = this.m_DataDic.ContainsKey(args.LayerID);
     if (flag)
     {
         data = this.m_DataDic[args.LayerID] as GeoUserVectorData;
         data.RemoveAllShape();
         key = args.LayerID;
     }
     else
     {
         data = new GeoUserVectorData();
         data.DataSource = args.DataSource;
         op = this.GenerateOperator(args.m_LayerType, data, args.AdjustDistance);
         this.RegisteOperator(op);
         args.GeoOperator = op;
     }
     UpdateGeoDataByArgs(args, data);
     if (!flag)
     {
         key = this.m_GeoMapMgr.AddApplicationVectorLayer(data);
         this.m_DataDic.Add(key, data);
         this.m_OperatorDic.Add(key, op);
     }
     return key;
 }
Example #2
0
 private static void UpdateGeoDataByArgs(AnalyGeoXYPointSymbolEventArgs args, GeoUserVectorData userVectorData)
 {
     Dictionary<SymbolConfig, List<GeoXYPoint>> symbolPtDict = args.m_SymbolPtDict;
     foreach (KeyValuePair<SymbolConfig, List<GeoXYPoint>> pair in symbolPtDict)
     {
         SymbolConfig key = pair.Key;
         List<GeoXYPoint> list = pair.Value;
         if (list.Count != 0)
         {
             GeoPointStyle style = new GeoPointStyle();
             style.SymbolStyle = PointSymbolStyle.TextSymbol;
             style.SymbolValue = key.SymbolValue;
             style.Color = key.ForeColor;
             style.IconSize = new Size((int) key.EMSize, (int) key.EMSize);
             style.SymbolFont = new Font(key.Family, key.EMSize, key.Style);
             foreach (GeoXYPoint point in list)
             {
                 userVectorData.AddPoint(point, style, false);
             }
         }
     }
 }
 private void reflashGeoXyPoint()
 {
     TreeNode selectedNode = this.m_ParentNode.TreeView.SelectedNode;
     List<DisplayUser> deleteUser = new List<DisplayUser>();
     this.FindDeleteUsers(selectedNode, deleteUser);
     List<GeoXYPoint> list2 = new List<GeoXYPoint>();
     if (this.m_SubSysInterface.SelectUsers == null)
     {
         this.m_SimGroupManager.DeleteGroup();
     }
     else
     {
         foreach (KeyValuePair<SymbolConfig, List<GeoXYPoint>> pair in this.m_SubSysInterface.SelectUsers)
         {
             foreach (GeoXYPoint point in pair.Value)
             {
                 foreach (DisplayUser user in deleteUser)
                 {
                     if ((point.X == user.LTEUser.LTEUser.X) && (point.Y == user.LTEUser.LTEUser.Y))
                     {
                         list2.Add(point);
                     }
                 }
             }
             foreach (GeoXYPoint point2 in list2)
             {
                 pair.Value.Remove(point2);
             }
         }
         AnalyGeoXYPointSymbolEventArgs args = new AnalyGeoXYPointSymbolEventArgs(1, this.m_SubSysInterface.SelectUsers);
         args.LayerID = SimulationSubSys.TheOnlyLayerId;
         this.m_SubSysInterface.AnalyDispEvent.AnalyGeoXYPointSymbolMsgChange(args);
         this.m_SubSysInterface.AnalyDispEvent.MapRedraw();
         this.m_SimGroupManager.FindGroup(this.m_ParentNode.TreeView.SelectedNode.Text);
         this.m_SimGroupManager.DeleteGroup();
         foreach (DisplayUser user2 in deleteUser)
         {
             int uesrId = user2.LTEUser.LTEUser.Id;
             string groupName = user2.SimulationName;
             DisplayUser item = this.m_UserInfo.UserList.Find(delegate (DisplayUser tempUser) {
                 return tempUser.SimulationName.Equals(groupName) && (tempUser.LTEUser.LTEUser.Id == uesrId);
             });
             this.m_UserInfo.UserList.Remove(item);
         }
     }
 }
 private void ShowUser()
 {
     Dictionary<SymbolConfig, List<GeoXYPoint>> symbolPtDict = new Dictionary<SymbolConfig, List<GeoXYPoint>>();
     AnalyGeoXYPointSymbolEventArgs args = new AnalyGeoXYPointSymbolEventArgs(1, symbolPtDict);
     args.LayerID = SimulationSubSys.TheOnlyLayerId;
     this.m_SubSysInterface.AnalyDispEvent.AnalyGeoXYPointSymbolMsgChange(args);
     this.m_SubSysInterface.AnalyDispEvent.MapRedraw();
 }
Example #5
0
 private void ShowUser()
 {
     this.m_UserInfo.UserList = this.m_selectUsersForMap;
     //foreach (DisplayUser user in this.m_UserInfo.UserList)
     //{
     //    if (user.LTEUser.UlAvgThroughput < user.LTEUser.ulMacMinThroughputdemand)
     //    {
     //        user.SymbolElement.ForeColor = Color.Red;
     //    }
     //}
     AnalyGeoXYPointSymbolEventArgs args = new AnalyGeoXYPointSymbolEventArgs(1, this.selectUsers);
     args.LayerID = TheOnlyLayerId;
     args.DataSource = "Simulation";
     this.m_SubSysInterface.SelectUsers = this.selectUsers;
     TheOnlyLayerId = this.m_SubSysInterface.AnalyDispEvent.AnalyGeoXYPointSymbolMsgChange(args);
     this.m_SubSysInterface.AnalyDispEvent.MapRedraw();
 }