コード例 #1
0
        private void AddPathDef(Tool.Point[] path, Pen pen = null)
        {
            PathDef def = new PathDef(pen);

            foreach (Tool.Point pt in path)
            {
                def.points.Add(pt);
            }
            paths.Add(def);
        }
コード例 #2
0
ファイル: Helpers.cs プロジェクト: quitanddead/DayZ_DB_Access
        public void RemoveLastPoint()
        {
            if (paths.Count > 0)
            {
                PathDef def = paths.Last();

                if (def.points.Count > 0)
                {
                    def.points.Remove(def.points.Last());
                }

                if (def.points.Count == 0)
                {
                    paths.Remove(def);
                }
            }
        }