private void btnSetPageText_Click(object sender, EventArgs e)
 {
     if (InputDataCheck())
     {
         FormProvoider.SetTabPageText(ItemID, FormProvoider.GetCurTabPage(ItemID), this.txtCurTabPage.Text);
     }
 }
        private void btnNextPage_Click(object sender, EventArgs e)
        {
            FormProvoider.SetCurTabPage(ItemID, FormProvoider.GetCurTabPage(ItemID) + 1);
            StringBuilder pageText = new StringBuilder(256);

            FormProvoider.GetTabPageText(ItemID, FormProvoider.GetCurTabPage(ItemID), pageText, pageText.Capacity);
            this.txtCurTabPage.Text = pageText.ToString();
        }
        private void BindData(string ItemName)
        {
            this.txtContorlName.Text = ItemName;
            StringBuilder pageText = new StringBuilder(256);

            FormProvoider.GetTabPageText(ItemID, FormProvoider.GetCurTabPage(ItemID), pageText, pageText.Capacity);
            this.txtCurTabPage.Text = pageText.ToString();
        }
 private void btnDeletePage_Click(object sender, EventArgs e)
 {
     if (DialogResult.Yes == MessageBox.Show("确定删除?", "删除确认", MessageBoxButtons.YesNo))
     {
         FormProvoider.DeleteTabPage(ItemID, FormProvoider.GetCurTabPage(ItemID));
         StringBuilder pageText = new StringBuilder(256);
         FormProvoider.GetTabPageText(ItemID, FormProvoider.GetCurTabPage(ItemID), pageText, pageText.Capacity);
         this.txtCurTabPage.Text = pageText.ToString();
     }
 }