コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: Types.cs プロジェクト: vendstor/vendstor
        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();
        }