Example #1
0
 public bool Equals(SymbolConfig symbolCfg)
 {
     if (this.symbolvalue != symbolCfg.SymbolValue)
     {
         return false;
     }
     if (this.emsize != symbolCfg.EMSize)
     {
         return false;
     }
     if (!this.forecolor.Equals(symbolCfg.ForeColor))
     {
         return false;
     }
     if (!this.family.Equals(symbolCfg.Family))
     {
         return false;
     }
     if (!this.style.Equals(symbolCfg.Style))
     {
         return false;
     }
     return true;
 }
Example #2
0
 private void FindSelectUsers(TreeNode snapNode, List<short> statusNodeImageIndex)
 {
     foreach (TreeNode node in snapNode.Nodes)
     {
         List<DisplayUser> tag = (List<DisplayUser>) node.Tag;
         if (node.StateImageIndex != 1)
         {
             statusNodeImageIndex.Add((short) node.Index);
             if ((tag != null) && (tag.Count >= 1))
             {
                 List<GeoXYPoint> list2 = new List<GeoXYPoint>();
                 foreach (DisplayUser user in tag)
                 {
                     GeoXYPoint item = new GeoXYPoint();
                     item.X = user.LTEUser.LTEUser.X;
                     item.Y = user.LTEUser.LTEUser.Y;
                     list2.Add(item);
                     this.m_selectUsersForMap.Add(user);
                 }
                 SymbolConfig key = new SymbolConfig(tag[0].SymbolElement.SymbolValue, tag[0].SymbolElement.Family, tag[0].SymbolElement.Style, tag[0].SymbolElement.EMSize, tag[0].SymbolElement.ForeColor);
                 this.selectUsers.Add(key, list2);
             }
         }
     }
 }