public EntryCell( string label, Gdk.Color labelColor, string text, string placeholder) { _root = new VBox(); Add(_root); _textLabel = new Gtk.Label(); _textLabel.SetAlignment(0, 0); _textLabel.Text = label ?? string.Empty; _textLabel.ModifyFg(StateType.Normal, labelColor); _root.PackStart(_textLabel, false, false, 0); _entryWrapper = new EntryWrapper(); _entryWrapper.Sensitive = true; _entryWrapper.Entry.Text = text ?? string.Empty; _entryWrapper.PlaceholderText = placeholder ?? string.Empty; _entryWrapper.Entry.Changed += OnEntryChanged; _entryWrapper.Entry.EditingDone += OnEditingDone; _root.PackStart(_entryWrapper, false, false, 0); }
public void Flush(ILineReaderEntry stopAt = null) { if (stopAt != null) { m_index = (stopAt as EntryWrapper).Index; } else { m_index = m_list.Count; } m_current = null; }
public bool Next() { m_current = null; if (m_index < (m_list.Count - 1)) { m_index++; return(true); } else if (m_index < (m_list.Count)) { m_index++; // Skip past the last entry } return(false); }