Exemplo n.º 1
0
        /// <summary>
        /// Creates a GKE step complete with behavior and visuals.
        /// </summary>
        internal static GkeStepViewModel CreateStep()
        {
            var content   = new GkeStepContent();
            var viewModel = new GkeStepViewModel(content);

            content.DataContext = viewModel;

            return(viewModel);
        }
        /// <summary>
        /// Creates a GKE step complete with behavior and visuals.
        /// </summary>
        internal static GkeStepViewModel CreateStep(IGkeDataSource dataSource = null, IApiManager apiManager = null)
        {
            var content   = new GkeStepContent();
            var viewModel = new GkeStepViewModel(content, dataSource, apiManager);

            content.DataContext = viewModel;

            return(viewModel);
        }