Initialize() public method

public Initialize ( Contracts view ) : void
view Contracts
return void
コード例 #1
0
 private void OnReload(object obj)
 {
     Recipes.Clear();
     var provider = ProviderFactory.CreateRecipeProvider();
     foreach(var recipe in provider.GetByName(100))
     {
         var state = new RecipeViewModelState();
         state.SubmitCommand = new DelegateCommand<RecipeViewModelState>(z => OnSubmit(state), state, x => x.CanSubmit);
         state.Initialize(recipe);
         Recipes.Add(state);
     }
 }
コード例 #2
0
        private void OnReload(object obj)
        {
            Recipes.Clear();
            var provider = ProviderFactory.CreateRecipeProvider();

            foreach (var recipe in provider.GetByName(100))
            {
                var state = new RecipeViewModelState();
                state.SubmitCommand = new DelegateCommand <RecipeViewModelState>(z => OnSubmit(state), state, x => x.CanSubmit);
                state.Initialize(recipe);
                Recipes.Add(state);
            }
        }