/// <summary> /// Creator: Robert Holmes /// Created: 2020/03/19 /// Approver: /// /// Constructor for use when viewing the details of a promotion. /// </summary> /// <remarks> /// Updater: /// Updated: /// Update: /// /// </remarks> public pgAddEditViewPromotion(IPromotionManager promotionManager, Frame frame, Promotion promotion) { _promotionManager = promotionManager; _frame = frame; _promotion = promotion; InitializeComponent(); lblPageHeading.Content = "Promotion Details"; btnAction.Content = "Done"; btnCancel.Visibility = Visibility.Hidden; btnAdd.Visibility = Visibility.Hidden; btnRemove.Visibility = Visibility.Hidden; txtSearch.Visibility = Visibility.Hidden; loadFields(); makeReadOnly(); }
/// <summary> /// Creator: Robert Holmes /// Created: 2020/03/10 /// Approver: Cash Carlson /// /// Constructor used for add operations. /// </summary> /// <remarks> /// Updater: /// Updated: /// Update: /// /// </remarks> public pgAddEditViewPromotion(IPromotionManager promotionManager, Frame frame) { _promotionManager = promotionManager; _frame = frame; _promotion = new Promotion(); InitializeComponent(); lblPageHeading.Content = "Add New Promotion"; btnAction.Content = "Add Promo"; cboPromotionType.ItemsSource = _promotionManager.GetAllPromotionTypes(); dgProducts.ItemsSource = _promotion.Products; _productManager = new ProductManager(); makeEditable(); setupNumUpDown(); btnToggleActive.IsEnabled = false; txtActive.Text = "Active"; }
/// <summary> /// Creator: Robert Holmes /// Created: 2020/03/19 /// Approver: /// /// Constructor for edit operations. /// </summary> /// <remarks> /// Updater: /// Updated: /// Update: /// /// </remarks> public pgAddEditViewPromotion(IPromotionManager promotionManager, Frame frame, Promotion promotion, bool editMode = true) { if (editMode) { _promotionManager = promotionManager; _frame = frame; _promotion = promotion; InitializeComponent(); lblPageHeading.Content = "Editing Promotion"; btnAction.Content = "Save"; loadFields(); makeEditable(); txtPromotionID.IsReadOnly = true; } else { _frame.Navigate(new pgAddEditViewPromotion(promotionManager, frame, promotion)); } }
public OrderValueCalculator(IUnitPriceManager unitpriceManager, IPromotionManager promotionManager) { this.unitpriceManager = unitpriceManager; this.promotionManager = promotionManager; }
public void Sales(GamerManager gamerManager, IPromotionManager promotionManager) { promotionManager.Add(); Console.WriteLine("Satış yapıldı : " + gamerManager.Name); }
public RentalBikeWorkflow(IPromotionManager promotionManager) { this.promotionManager = promotionManager; InitRentalTypeMap(); }
public PromotionController(IPromotionManager promotionManager, IImageManager imageManager) { _promotionManager = promotionManager; _imageManager = imageManager; }
public CreateWalletCommandHandler(ApplicationDbContext context, IPromotionManager promotionManager) { this.context = context; this.promotionManager = promotionManager; }
public CheckOutManager(IPromotionManager promotionManager) { this.promotionManager = promotionManager; }