예제 #1
0
        public void InitCategoryList()
        {
            //show a please wait dialog for this lengthy process
            controller.ShowPleaseWaitDialog();

            sortedLeafCategories = GetSortedLeafCategories();

            populateCategoryList();
            showResult();

            controller.HidePleaseWaitDialog();
        }
예제 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            try
            {
                if (this.returnPolicyGroupBox.Enabled)
                {
                    if (this.returnPolicyProfileIdTextBox.Text != "" || this.returnPolicyProfileNameTextBox.Text != "")
                    {
                        SellerReturnProfileType returnProfile = new SellerReturnProfileType();
                        if (this.returnPolicyProfileIdTextBox.Text != "")
                        {
                            returnProfile.ReturnProfileID          = Int64.Parse(this.returnPolicyProfileIdTextBox.Text);
                            returnProfile.ReturnProfileIDSpecified = true;
                        }
                        returnProfile.ReturnProfileName = this.returnPolicyProfileNameTextBox.Text;
                        this.controller.CategoryFacade.ReturnPolicyProfileCache = returnProfile;
                        this.controller.CategoryFacade.ReturnPolicyCache        = null;
                    }
                    else
                    {
                        this.controller.CategoryFacade.ReturnPolicyCache        = this.getReturnPolicy();
                        this.controller.CategoryFacade.ReturnPolicyProfileCache = null;
                    }
                }

                this.Hide();

                AddItemForm addItemForm = this.controller.FormTable[AttributesController.ADD_ITEM_FORM] as AddItemForm;
                controller.ShowPleaseWaitDialog();
                addItemForm.InitForm();
                controller.HidePleaseWaitDialog();
                addItemForm.Show();
                addItemForm.BringToFront();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error Message", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }