void DisplayCustomerGroup(Enums.Task task) { //Add Blur Blur blur = new Blur(this.ParentForm, UIConstants.FormBlurOpacity); blur.Show(); Forms.Products.Type type = new Forms.Products.Type { ProductType = Type, Task = task, TopMost = true }; // Update If Updated var formResponse = type.ShowWithResponse(); if (formResponse.ActionDialog == Enums.ActionDialog.Updated) { Type = (Backend.Objects.ProductType)formResponse.Data; //Force Update this.Initialize(); } //Remove Blur blur.Close(); }
private void BtnAddType_Click(object sender, EventArgs e) { ///Add Blur Blur blur = new Blur(this.ParentForm, UIConstants.FormBlurOpacity); blur.Show(); Forms.Products.Type type = new Forms.Products.Type { OnCreate = OnCreateType, Task = Enums.Task.Create, TopMost = true }; type.ShowWithResult(); //Remove Blur blur.Close(); }