Beispiel #1
0
 public WorkspaceVm(Workspace workspace, IWindsorContainer applicationWindsorContainer) : base(applicationWindsorContainer)
 {
     this.ApplicationOrInvestigationWindsorContainer = applicationWindsorContainer;
     this.Workspace = workspace;
     this.Save();
     WorkspaceMessage.SendWorkspaceMessage(this, WorkspaceMessage.Type.Created);
 }
Beispiel #2
0
 public void Close()
 {
     if (!this.IsOpened)
     {
         return;
     }
     WorkspaceMessage.SendWorkspaceMessage(this, WorkspaceMessage.Type.Closing, DetectiveMessage.SendMethod.Blocking);
     WorkspaceMessage.SendWorkspaceMessage(this, WorkspaceMessage.Type.Closed, DetectiveMessage.SendMethod.Blocking);
     this.IsOpened = false;
 }
Beispiel #3
0
        public async Task Open()
        {
            WorkspaceMessage.SendWorkspaceMessage(this, WorkspaceMessage.Type.Opening);
            this.IsOpened = true;
            await this.Workspace.LoadInvestigations();

            this.Investigations = new ViewModelVirtualizingIoCObservableCollection <InvestigationVm, Investigation>(this.Workspace.Investigations,
                                                                                                                    this.ApplicationOrInvestigationWindsorContainer);

            WorkspaceMessage.SendWorkspaceMessage(this, WorkspaceMessage.Type.Opened, DetectiveMessage.SendMethod.Blocking);
        }