public CoreGceWarningStepViewModel(IPublishDialog publishDialog) { _publishDialog = publishDialog; BrowseAspNetCoreIisDocs = new ProtectedCommand(OnBrowseAspNetCoreIisDocs); BrowseAspNetMarketplaceImage = new ProtectedCommand(OnBrowseAspNeMarketplaceImage); Title = string.Format(Resources.GcePublishStepTitle, publishDialog.Project.Name); ActionCommand = new ProtectedCommand(OnNextCommand); _nextStepContent = new GceStepContent(_publishDialog); _browserService = GoogleCloudExtensionPackage.Instance.GetMefServiceLazy <IBrowserService>(); }
internal static GceStepViewModel CreateStep() { var content = new GceStepContent(); var viewModel = new GceStepViewModel(content); content.DataContext = viewModel; return viewModel; }
private GceStepViewModel(GceStepContent content) { _content = content; Instances = AsyncPropertyValueUtils.CreateAsyncProperty(GetAllWindowsInstances()); ManageCredentialsCommand = new ProtectedCommand(OnManageCredentialsCommand, canExecuteCommand: false); }