Пример #1
0
        public bool AddStamp(Stamp s)
        {
            if (HasStamp(s.Location))
                return false;

            stamps.Add(s);
            return true;
        }
Пример #2
0
        public Stamp AddStamp(MarkerType m, int size, Point p)
        {
            if (m == MarkerType.None || HasStamp(p))
                return null;

            Stamp stamp = new Stamp(p, size, m);
            stamps.Add(stamp);
            return stamp;
        }
Пример #3
0
        public bool AddStamp(Stamp s)
        {
            if (HasStamp(s.Location))
            {
                return(false);
            }

            stamps.Add(s);
            return(true);
        }
Пример #4
0
        public Stamp AddStamp(MarkerType m, int size, Point p)
        {
            if (m == MarkerType.None || HasStamp(p))
            {
                return(null);
            }

            Stamp stamp = new Stamp(p, size, m);

            stamps.Add(stamp);
            return(stamp);
        }