private void viewport_person_name_show_paint() { if (SelectedPerson == null) { viewport_person_name.Visible = false; } else { UtilGtk.ViewportColor(viewport_person_name, UtilGtk.YELLOW); viewport_person_name.Visible = true; } }
//public methods ------------------------------- public void Select(bool select) { Array box_elements = getButtonBoxElements(button); //image Gtk.Image image = (Gtk.Image)box_elements.GetValue(0); //the image Gtk.Viewport viewport = (Gtk.Viewport)box_elements.GetValue(2); //the name if (select) { UtilGtk.ViewportColor(viewport, UtilGtk.YELLOW); } else { UtilGtk.ViewportColorDefault(viewport); } Selected = select; }