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);
     }
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
 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);
         }
     }
 }