public void ConfigureNewProduct() { if (this.NextPageCompany == null) { CompanyPage = new CreateCompanyViewModel(SA, EventAggregator, "Next"); this.NextPageCompany = new NavigatePage(CompanyPage); this.EventAggregator.PublishOnUIThread(NextPageCompany); } else { this.EventAggregator.PublishOnUIThread(NextPageCompany); } }
public void AddCompany() { if (NavigationTool == null || NavigationTool.Params[0] != CreateCompanyPage) { CreateCompanyPage = new CreateCompanyViewModel(this.SA, EventAggregator, "Create Company"); NavigationTool = new NavigatePage(CreateCompanyPage); EventAggregator.PublishOnUIThread(NavigationTool); } else { EventAggregator.PublishOnUIThread(NavigationTool); } }
public void EditCompany(Company currentCompany) { if (currentCompany != null) { if (NavigationTool == null || NavigationTool.Params[0] != EditCompanyPage) { EditCompanyPage = new CreateCompanyViewModel(this.SA, currentCompany, EventAggregator, "Edit Company"); NavigationTool = new NavigatePage(EditCompanyPage); EventAggregator.PublishOnUIThread(NavigationTool); } else { EventAggregator.PublishOnUIThread(NavigationTool); } } }