示例#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);
            }
        }
示例#2
0
        /// <summary>
        /// 云价格库
        /// </summary>
        private void initInformationSetting()
        {
            InformationSettingForm form = new InformationSettingForm();

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