public override void Read()
        {
            var smooth   = new AreaTransitionTexture();
            var counter4 = 0;

            foreach (string s in Strings.Where(s => !string.IsNullOrEmpty(s) && !s.StartsWith("//")))
            {
                if (s.Contains("="))
                {
                    if (smooth.ColorFrom != System.Windows.Media.Colors.Black)
                    {
                        Smooth.List.Add(smooth);
                    }
                    smooth      = new AreaTransitionTexture();
                    smooth.Name = s;
                    continue;
                }
                var chars = new char[] { '/' };
                var name  = s.Split(chars, StringSplitOptions.RemoveEmptyEntries);
                var str   = name[0].Split(separator, StringSplitOptions.RemoveEmptyEntries);

                if (str.Length == 1 && str[0].StartsWith("0x"))
                {
                    smooth.ColorFrom = ReadColorFromInt(str[0]);
                    continue;
                }
                if (str.Length == 2)
                {
                    smooth.ColorFrom = ReadColorFromInt(str[0]);
                    smooth.ColorTo   = ReadColorFromInt(str[1]);
                    continue;
                }

                if (str.Length == 4)
                {
                    TransitionCheck(smooth, str.ToList(), counter4);
                    counter4++;
                    counter4 = counter4 % 3;
                    continue;
                }
            }
        }
        public void GetData(Action <object, Exception> callback)
        {
            var trans = new AreaTransitionTexture {
                Name = "Trans Data Model"
            };
            var random = new Random();

            trans.TextureIdTo = random.Next(0, 200);
            foreach (
                LineType lineType in
                Enum.GetValues(typeof(LineType)))
            {
                foreach (var direction in Enum.GetValues(typeof(Direction)))
                {
                    for (var i = 0; i < 10; i++)
                    {
                        trans.AddElement(lineType, (int)direction, random.Next(0, 100));
                    }
                }
            }
            callback(trans, null);
        }
 public override void Cleanup()
 {
     _transList = null;
     _selected  = null;
     _cloned    = null;
 }