private void HandleProjectCreated(object sender, ProjectCreatedEventArgs e) { ProjectViewModel projectViewModel = new ProjectViewModel(userInterface, statusInfo, openedProjects, e.NewProject); Projects.Add(projectViewModel); IsNoTabInfoVisible = Projects.Count == 0; }
public void CreateProject(object sender, ProjectCreatedEventArgs eventArgs) { this.ProjectCreated.Raise(sender, eventArgs); }
public override void OnProjectCreated(ProjectCreatedEventArgs args) { base.OnProjectCreated(args); }
public Task <PolicyResult <Guid> > Handle(ProjectCreatedEventArgs request, CancellationToken cancellationToken) { throw new NotImplementedException(); }
public Task <PolicyResult <Guid> > Handle(ProjectCreatedEventArgs request, CancellationToken cancellationToken) { return(this.executionPolicies.DbExecutionPolicy.ExecuteAndCaptureAsync(() => this.repository.CreateProjectAsync(request.Project))); }