private void ClientProductButton_Click(object sender, RoutedEventArgs e)
 {
     if (!ProjectFunctions.IgnoreAnyChanges())
     {
         return;
     }
     clearChanges();
     if (internalProjectSelected())
     {
         Globals.ProductSourcePage = "ProjectProductsPage";
         PageFunctions.ShowProductPage(pageMode);
     }
     else
     {
         if (editMode == modeType.ProductsOfProject && Globals.SelectedProjectProxy != null && Globals.SelectedProjectProxy.Client != null)
         {
             int clientID = Globals.SelectedProjectProxy.Client.ID;
             Globals.SelectedClient = ClientFunctions.GetClientByID(clientID);
         }
         Globals.ClientSourcePage = "ProjectProductsPage";
         PageFunctions.ShowClientProductsPage(selectedProductID);
     }
 }
예제 #2
0
 private void AmendProduct_Click(object sender, RoutedEventArgs e)
 {
     PageFunctions.ShowProductPage(PageFunctions.Amend);
 }
예제 #3
0
 private void ProductButton_New_Click(object sender, RoutedEventArgs e)
 {
     PageFunctions.ShowProductPage(PageFunctions.New);
 }