Example #1
0
        private void btnAddAttribute_Click(object sender, EventArgs e)
        {
            var picker = new SQLAttributePicker(GetDBMSType());

            picker.Location = new Point(0, (13 * (attributeList.Count)) + ((attributeList.Count) * picker.Height) + pnlAttributes.AutoScrollPosition.Y);

            attributeList.Add(picker);
            pnlAttributes.Controls.Add(picker);
            picker.Focus();
        }
Example #2
0
        private void radMySQL_CheckedChanged(object sender, EventArgs e)
        {
            pnlAttributes.Controls.Clear();
            attributeList.Clear();

            if (radMySQL.Checked)
            {
                // Add one attribute by default
                var picker = new SQLAttributePicker(DBMSType.MYSQL);
                attributeList.Add(picker);
                pnlAttributes.Controls.Add(picker);
            }
        }
Example #3
0
        private void InitializeForm()
        {
            chkCPP.Checked    = false;
            chkCSharp.Checked = false;
            chkJava.Checked   = false;
            chkPython.Checked = false;
            chkPHP.Checked    = false;
            radTSQL.Checked   = false;
            radMySQL.Checked  = false;
            radOracle.Checked = false;

            txtSchemaName.Text = String.Empty;
            txtEntityName.Text = String.Empty;
            txtNamespace.Text  = String.Empty;
            radTSQL.Checked    = true;
            pnlAttributes.Controls.Clear();
            attributeList.Clear();
            // Add one attribute by default
            var picker = new SQLAttributePicker(DBMSType.TSQL);

            attributeList.Add(picker);
            pnlAttributes.Controls.Add(picker);
        }