Exemplo n.º 1
0
        /// <summary>
        /// 用户材机库
        /// </summary>
        private void initUserQuantityUnit()
        {
            UserPriceLibraryManagement form = new UserPriceLibraryManagement();

            form.Text            = "用户材机库";
            form.TopLevel        = false;
            form.Dock            = DockStyle.Fill;
            form.FormBorderStyle = FormBorderStyle.None;
            form.Visible         = true;
            xtraTabPage1.Controls.Add(form);
        }
Exemplo n.º 2
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            switch (this.xtraTabControl1.SelectedTabPageIndex)
            {
            case 0:
                UserPriceLibraryManagement u_form = this.xtraTabControl1.SelectedTabPage.Controls[0] as UserPriceLibraryManagement;
                u_form.Remove();
                break;

            case 1:
                RepairQuantityUnitManagement r_form = this.xtraTabControl1.SelectedTabPage.Controls[0] as RepairQuantityUnitManagement;
                r_form.Remove();
                break;

            default:
                break;
            }
        }