Exemplo n.º 1
0
        public override void Load()
        {
            SavePath    = XmlHelperPaint.XmlSavePath;
            MDictionary = XmlHelperPaint.LoadPaintSetting();
            int i = 0;

            foreach (var item in MDictionary)
            {
                switch (i)
                {
                case 0:
                    StartPoint = StringToPoint(item.Value);
                    break;

                case 1:
                    EndPoint = StringToPoint(item.Value);
                    break;
                }
                i++;
            }
        }
Exemplo n.º 2
0
        public override void Load()
        {
            SavePath    = XmlHelperPaint.XmlSavePath;
            MDictionary = XmlHelperPaint.LoadPaintSetting();
            int i = 0;

            foreach (var item in MDictionary)
            {
                switch (i)
                {
                case 0:
                    Rectangle.X = Convert.ToInt32(item.Value);
                    break;

                case 1:
                    Rectangle.Y = Convert.ToInt32(item.Value);
                    break;

                case 2:
                    Rectangle.Width = Convert.ToInt32(item.Value);
                    break;

                case 3:
                    Rectangle.Height = Convert.ToInt32(item.Value);
                    break;

                case 4:
                    StartAngle = Convert.ToInt32(item.Value);
                    break;

                case 5:
                    EndAngle = Convert.ToInt32(item.Value);
                    break;
                }
                i++;
            }
        }