Пример #1
0
 internal void Load(ICellRenderer cell)
 {
     CurrentCellView      = (NSView)cell;
     CurrentPosition      = cell.CellContainer.TablePosition;
     currentParentRowView = null;
     EventSink            = Frontend.Load(cell.CellContainer);
 }
Пример #2
0
 public void LoadData(TreeModel model, Gtk.TreeIter iter)
 {
     TreeModel            = model;
     CurrentIter          = iter;
     EventSink            = Frontend.Load(this);
     CellRenderer.Visible = Frontend.Visible;
     OnLoadData();
 }
Пример #3
0
        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();
        }
Пример #4
0
 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;
 }