protected virtual void OnAddValues(Xwt.ListStore store, int row, ResXNode node) { store.SetValues(row, nameField, node.Name, valueField, Data.GetValue(node).ToString(), commentField, node.Comment ?? string.Empty, typeField, node.TypeName ?? string.Empty, nodeField, node); }
void RemoveSelectedRows() { int removed = 0; foreach (var row in listView.SelectedRows) { var name = store.GetValue(row, nameField); if (row == store.RowCount - 1) { store.SetValues(row, valueField, string.Empty, commentField, null); continue; } store.RemoveRow(row - removed++); } SetDocumentDirty(); }