void DisplayCustomerGroup(Enums.Task task) { //Add Blur Blur blur = new Blur(this.ParentForm, UIConstants.FormBlurOpacity); blur.Show(); Brand brand = new Brand { ProductBrand = Brand, Task = task, TopMost = true }; // Update If Updated var formResponse = brand.ShowWithResponse(); if (formResponse.ActionDialog == Enums.ActionDialog.Updated) { Brand = (Backend.Objects.ProductBrand)formResponse.Data; //Force Update this.Initialize(); } //Remove Blur blur.Close(); }
void DisplayCustomerGroup(Enums.Task task) { //Add Blur Blur blur = new Blur(this.ParentForm, UIConstants.FormBlurOpacity); blur.Show(); Forms.Customers.CustomerGroup customerGroup = new Forms.Customers.CustomerGroup { Group = Group, Task = task, TopMost = true }; // Update If Updated var formResponse = customerGroup.ShowWithResponse(); if (formResponse.ActionDialog == Enums.ActionDialog.Updated) { Group = (Backend.Objects.CustomerGroup)formResponse.Data; //Force Update this.Initialize(); } //Remove Blur blur.Close(); }
void DisplayDiscount(Enums.Task task) { //Add Blur Blur blur = new Blur(this.ParentForm, UIConstants.FormBlurOpacity); blur.Show(); Forms.Discounts.Discount product = new Forms.Discounts.Discount { DiscountObject = Discount, OnDelete = OnDeleteDiscount, Task = task, TopMost = true }; // Update If Updated var formResponse = product.ShowWithResponse(); if (formResponse.ActionDialog == Enums.ActionDialog.Updated) { Discount = (Backend.Objects.Discount)formResponse.Data; //Force Update this.Initialize(); } //Remove Blur blur.Close(); }