Beispiel #1
0
        private void btnLoadColumns_Click(object sender, EventArgs e)
        {
            string objectName = this.txtObjectName.Text;

            if (string.IsNullOrWhiteSpace(objectName))
            {
                MessageBox.Show("Please input the object name.");
                return;
            }

            this._fields = TemplateMgr.LoadFieldsByObject(objectName);

            if (this._fields.Count > 0)
            {
                this.Display();
            }
            else
            {
                MessageBox.Show("The object schema not exist. Will create it.");
            }
        }