Пример #1
0
        /// <summary>
        /// Sets teh second point
        /// </summary>
        /// <param name="p1"></param>
        /// <param name="secondaryTool"></param>
        public void VSetP2(Coordinates p2, IEditorTool secondaryTool)
        {
            this.p2    = p2;
            this.SetP2 = true;

            if (secondaryTool != null && secondaryTool is PointAnalysisTool)
            {
                PointAnalysisTool pat = (PointAnalysisTool)secondaryTool;
                pat.Save.Add(p2);
            }
        }
Пример #2
0
        /// <summary>
        /// Sets teh first point
        /// </summary>
        /// <param name="p1"></param>
        /// <param name="secondaryTool"></param>
        public void VSetP1(Coordinates p1, IEditorTool secondaryTool)
        {
            this.SetP1 = true;
            this.p1    = p1;

            if (secondaryTool != null && secondaryTool is PointAnalysisTool)
            {
                PointAnalysisTool pat = (PointAnalysisTool)secondaryTool;

                pat.Save = new List <Coordinates>();
                pat.Save.Add(p1);
            }
        }
Пример #3
0
        /// <summary>
        /// Resets values
        /// </summary>
        /// <param name="secondaryTool"></param>
        public void Reset(IEditorTool secondaryTool)
        {
            this.p1 = null;
            this.p2 = null;
            this.p3 = null;

            this.SetP1 = false;
            this.SetP2 = false;
            this.SetP3 = false;

            if (secondaryTool != null && secondaryTool is PointAnalysisTool)
            {
                PointAnalysisTool pat = (PointAnalysisTool)secondaryTool;
                pat.Save = new List <Coordinates>();
            }
        }