private void PushModel <T>(T model, bool creating, Action <bool, T> nextAction, Action <bool> curAction) { if (!validator.IsValid(model, curAction, creating)) { return; } nextAction(creating, model); inAppBehavior.Menu(); }
private void SetProps <U>(U item) { if (!validator.IsValid(item, Search, true)) { return; } PropertyInfo[] properties = typeof(T).GetProperties(); for (int i = 0; i < properties.Length; ++i) { var value = properties[i].GetValue(item, null); properties[i].SetValue(searchItem, value); } }