private void Delete(EditableTextItem <EntryKeyValuePair> param) { if (param == null) { return; } EntryKeyValuePairs.Remove(param); }
public Entry ToEntry(IBitmapSourceSerializer iconSerializer, ICipher cipher) { return(new Entry(iconSerializer.Deserialize(Icon), EntryKeyValuePairs.Select(pair => pair.ToEntryKeyValuePair(cipher)).ToList())); }
private void Add(object param) { EntryKeyValuePairs.Add( new EditableTextItem <EntryKeyValuePair>(new EntryKeyValuePair("New Key", string.Empty, isMandatory: false, isMultiline: AddMultiline, isProtected: AddProtected), true)); }
private void OkClick(object param) { ReturnInformation = new AddEntryModel(new Entry(Icon, EntryKeyValuePairs.Select(item => item.WrappedItem).ToList())); Controller.ReturnOk(); }