Example #1
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            bool isCalculate = false;

            switch (this.xtraTabControl1.SelectedTabPageIndex)
            {
            case 0:
                UserPriceLibrarySettingForm u_form = this.xtraTabControl1.SelectedTabPage.Controls[0] as UserPriceLibrarySettingForm;
                isCalculate = u_form.UpdateInfo();
                break;

            case 1:
                RepairQuantityUnitSettingForm r_form = this.xtraTabControl1.SelectedTabPage.Controls[0] as RepairQuantityUnitSettingForm;
                isCalculate = r_form.UpdateInfo();
                break;

            case 2:
                InformationSettingForm i_form = this.xtraTabControl1.SelectedTabPage.Controls[0] as InformationSettingForm;
                isCalculate = i_form.UpdateInfo();
                break;

            default:
                break;
            }
            if (isCalculate)
            {
                this.DialogResult = DialogResult.OK;
                this.Activitie.BeginEdit(this);
            }
        }
Example #2
0
        /// <summary>
        /// 用户价格库
        /// </summary>
        private void initUserPriceLibrarySetting()
        {
            UserPriceLibrarySettingForm form = new UserPriceLibrarySettingForm();

            form.Activitie       = Activitie;
            form.Current         = this.Current;
            form.TopLevel        = false;
            form.Visible         = true;
            form.Dock            = DockStyle.Fill;
            form.FormBorderStyle = FormBorderStyle.None;
            xtraTabPage1.Controls.Add(form);
        }