private void btnShowConstraint_Click(object sender, EventArgs e)
        {
            // 设置鼠标繁忙状态,并保留原先的状态
            Cursor holdCursor = this.Cursor;

            this.Cursor = Cursors.WaitCursor;
            try
            {
                if (!this.CheckInput())
                {
                    return;
                }
                this.TableConstraint = this.GetConstraintExpression();
                if (string.IsNullOrEmpty(this.TableConstraint))
                {
                    MessageBox.Show(AppMessage.MSG9915, AppMessage.MSG0000, MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                else
                {
                    string assemblyName = "DotNet.WinForm";
                    string formName     = "FrmShowConstraint" + this.TableName;
                    Type   assemblyType = null;
                    try
                    {
                        assemblyType = CacheManager.Instance.GetType(assemblyName, formName);
                    }
                    catch
                    {
                    }

                    Form frmTableShowConstraint = null;
                    if (assemblyType != null)
                    {
                        frmTableShowConstraint = (Form)Activator.CreateInstance(assemblyType, this.TableRealName, this.TableName, this.TableConstraint);
                    }
                    else
                    {
                        frmTableShowConstraint = new FrmShowConstraintTable(this.TableRealName, this.TableName, this.TableConstraint);
                    }
                    frmTableShowConstraint.ShowDialog(this);
                }
            }
            catch (Exception ex)
            {
                this.ProcessException(ex);
            }
            finally
            {
                // 设置鼠标默认状态,原来的光标状态
                this.Cursor = holdCursor;
            }
        }
        private void btnShowConstraint_Click(object sender, EventArgs e)
        {
            // 设置鼠标繁忙状态,并保留原先的状态
            Cursor holdCursor = this.Cursor;
            this.Cursor = Cursors.WaitCursor;
            try
            {
                if (!this.CheckInput())
                {
                    return;
                }
                this.TableConstraint = this.GetConstraintExpression();
                if (string.IsNullOrEmpty(this.TableConstraint))
                {
                    MessageBox.Show(AppMessage.MSG9915, AppMessage.MSG0000, MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                else
                {
                    string assemblyName = "DotNet.WinForm";
                    string formName = "FrmShowConstraint" + this.TableName;
                    Type assemblyType = null;
                    try
                    {
                        assemblyType = CacheManager.Instance.GetType(assemblyName, formName);
                    }
                    catch
                    {
                    }

                    Form frmTableShowConstraint = null;
                    if (assemblyType != null)
                    {
                        frmTableShowConstraint = (Form)Activator.CreateInstance(assemblyType, this.TableRealName, this.TableName, this.TableConstraint);
                    }
                    else
                    {
                        frmTableShowConstraint = new FrmShowConstraintTable(this.TableRealName, this.TableName, this.TableConstraint);
                    }
                    frmTableShowConstraint.ShowDialog(this);
                }
            }
            catch (Exception ex)
            {
                this.ProcessException(ex);
            }
            finally
            {
                // 设置鼠标默认状态,原来的光标状态
                this.Cursor = holdCursor;
            }
        }