コード例 #1
0
 private TemplateChooserWindow(string dialogTitle) : base(dialogTitle)
 {
     ViewModel = new TemplateChooserViewModel(
         Close,
         () => PickProjectIdWindow.PromptUser(
             GoogleCloudExtension.Resources.TemplateWizardPickProjectIdHelpText,
             allowAccountChange: true));
     Content = new TemplateChooserWindowContent {
         DataContext = ViewModel
     };
 }
コード例 #2
0
        private void OnSelectProjectCommand()
        {
            Project selectedProject = PickProjectIdWindow.PromptUser(
                Resources.CloudExplorerPickProjectHelpMessage,
                allowAccountChange: false);

            if (selectedProject == null)
            {
                return;
            }

            CredentialsStore.Default.UpdateCurrentProject(selectedProject);
        }