void UpdateTags(List <Coordinates> coords, CoordinatesTagger tagger) { if (coords.Count > 0) { Visible = true; } tagger.Tagger.Coordinates = coords; tagger.Visible = coords.Count != 0; }
public void SetMode(bool horizontal) { if (box != null) { mainbox.Remove(box); box.Destroy(); } if (horizontal) { box = new HBox(); } else { box = new VBox(); } field = new CoordinatesTagger(); hfield = new CoordinatesTagger(); goal = new CoordinatesTagger(); box.PackStart(field, true, true, 0); box.PackStart(hfield, true, true, 0); box.PackStart(goal, true, true, 0); mainbox.PackStart(box, true, true, 0); box.Show(); }
void UpdateTags(List<Coordinates> coords, CoordinatesTagger tagger) { if (coords.Count > 0) { Visible = true; } tagger.Tagger.Coordinates = coords; tagger.Visible = coords.Count != 0; }