Exemplo n.º 1
0
        private void SelectedActionChanges(UserActions action)
        {
            InitEntrypoints(action);
            if (action == UserActions.New || action == UserActions.Update)
            {
                var deploy = SelectedFolder.DeployManifest ??
                             FlowUtils.CreateDeployManifest(SelectedFolder.FullPath, SelectedEntrypoint);
                var application = SelectedFolder.ApplicationManifest ??
                                  FlowUtils.CreateApplicationManifest(SelectedFolder.FullPath, SelectedEntrypoint);

                Version         = FlowUtils.ReadApplicationVersion(deploy) ?? Constants.DefaultVersion;
                ApplicationName = FlowUtils.ReadApplicationName(application);

                DeployManifest      = new ManifestEditorViewModel <DeployManifest>(deploy);
                ApplicationManifest = new ManifestEditorViewModel <ApplicationManifest>(application);
            }
            else
            {
                DeployManifest      = null;
                ApplicationManifest = null;
            }
        }