internal void Load(ICellRenderer cell) { CurrentCellView = (NSView)cell; CurrentPosition = cell.CellContainer.TablePosition; currentParentRowView = null; EventSink = Frontend.Load(cell.CellContainer); }
public void LoadData(TreeModel model, Gtk.TreeIter iter) { TreeModel = model; CurrentIter = iter; EventSink = Frontend.Load(this); CellRenderer.Visible = Frontend.Visible; OnLoadData(); }
public void LoadData(TreeModel model, Gtk.TreeIter iter) { TreeModel = model; CurrentIter = iter; EventSink = Frontend.Load(this); CellRenderer.Visible = Frontend.Visible; if (CellRenderer is GtkCellRendererCustom && Frontend.AccessibleFields.Label != null) { var label = GetValue(Frontend.AccessibleFields.Label) as string; ((GtkCellRendererCustom)CellRenderer).AccessibleText = label ?? string.Empty; } OnLoadData(); }
void HandleActivated(object sender, EventArgs e) { if (State == NSCellStateValue.On && stateChanging) { var cellView = Frontend; CellContainer.SetCurrentEventRow(); Frontend.Load(CellContainer); if (cellView.Editable && !cellView.RaiseToggled()) { if (cellView.ActiveField != null) { CellContainer.SetValue(cellView.ActiveField, State != NSCellStateValue.Off); } } else { base.State = NSCellStateValue.Off; } } stateChanging = false; }