コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: Searcher.cs プロジェクト: dendiod/RentC
        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);
            }
        }