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); } }
private void AmendProduct_Click(object sender, RoutedEventArgs e) { PageFunctions.ShowProductPage(PageFunctions.Amend); }
private void ProductButton_New_Click(object sender, RoutedEventArgs e) { PageFunctions.ShowProductPage(PageFunctions.New); }