// ASSIGN DEFAULT GRAPHICS ########################################################################################## public void SetDefaultStrokes(wStrokes.StrokeTypes StrokeType) { for (int i = 0; i < Sets.Count; i++) { for (int j = 0; j < Sets[i].Points.Count; j++) { Sets[i].Points[j].Graphics = new wStrokes(Sets[i].Points[j].Graphics, StrokeType).GetGraphic(); } } }
public void SetDefaultStrokes(wStrokes.StrokeTypes StrokeType, wGradient Pallet, bool IsRandom, bool BySeries) { int Total = Pallet.ColorSet.Count; if (IsRandom) { for (int i = 0; i < Sets.Count; i++) { Random rnd = new Random(); for (int j = 0; j < Sets[i].Points.Count; j++) { int Index = rnd.Next(0, Total); Sets[i].Points[j].Graphics = new wStrokes(Sets[i].Points[j].Graphics, StrokeType).GetGraphic(); Sets[i].Points[j].Graphics.StrokeColor = Pallet.ColorSet[Index]; } } } else { int im = 0; int jm = 0; if (BySeries) { im = 1; } else { jm = 1; } for (int i = 0; i < Sets.Count; i++) { for (int j = 0; j < Sets[i].Points.Count; j++) { Sets[i].Points[j].Graphics = new wStrokes(Sets[i].Points[j].Graphics, StrokeType).GetGraphic(); Sets[i].Points[j].Graphics.StrokeColor = Pallet.ColorSet[((i * im) + (j * jm)) % Total]; } } } }