protected override void Next() { Configuration.SelectedRegion.Colors = Colors.Select(c => new FillingColor(c.Color)).ToList(); if (!Directory.Exists("Content")) { Directory.CreateDirectory("Content"); } using (FileStream fs = new FileStream(Path.Combine("Content", RegionName + "_pattern.png"), FileMode.Create, FileAccess.Write)) { PatternImage.WriteTga(fs); } using (FileStream fs = new FileStream(Path.Combine("Content", RegionName + "_ideal.png"), FileMode.Create, FileAccess.Write)) { var temp = new WriteableBitmap(SourceImage); temp.WriteTga(fs); } base.Next(); }