public static void AssignColor([Domain("triangle")] Side s, [Domain("colors")] Color c) { s.color = c; }
public static bool AssignColorEnabled(Side s) { return((mode == Mode.Coloring) && (s.color.Equals(Color.unassigned))); }
static void Init() { triangle = new Set <Side>(Side.Create(), Side.Create(), Side.Create()); colors = new Set <Color>(Color.BLUE, Color.RED); mode = Mode.Coloring; }