示例#1
0
 private void cbConnection_SelectedIndexChanged(object sender, EventArgs e)
 {
     _actScriptingDbReg = cbConnection.SelectedItem as DBRegistrationClass;
     _ac = new AutocompleteClass(fcbSQL, _actScriptingDbReg);
     _ac.RefreshAutocompleteForDatabase();
     _ac2 = new AutocompleteClass(fcbCommands, _actScriptingDbReg);
     _ac2.RefreshAutocompleteForDatabase();
 }
示例#2
0
 private void ConstraintsForm_Load(object sender, EventArgs e)
 {
     DataToEdit();
     OldConstraintName = txtConstraintName.Text.Trim();
     NewConstraintName = OldConstraintName;
     MakeSQL();
     ac = new AutocompleteClass(fctSQL, _dbReg);
     ac.RefreshAutocompleteForDatabase();
 }
示例#3
0
 private void ConstraintForm_Load(object sender, EventArgs e)
 {
     DataToEdit();
     oldIndexName = txtIndexName.Text.Trim();
     //RefreshDependenciesTo();
     MakeSQL();
     ac = new AutocompleteClass(fctSQL, _dbReg);
     ac.RefreshAutocompleteForDatabase();
 }
示例#4
0
        private void ReplicationDesignForm_Load(object sender, EventArgs e)
        {
            DataToEdit();

            //RefreshDependenciesTo();
            MakeSQL();
            ac = new AutocompleteClass(fctSQL, _dbReg);
            ac.RefreshAutocompleteForDatabase();
        }
示例#5
0
 private void PrimaryKeyForm_Load(object sender, EventArgs e)
 {
     _dataFilled = false;
     DataToEdit();
     _oldIndexName = txtPKName.Text.Trim();
     MakeSQL();
     _ac = new AutocompleteClass(fctSQL, _dbReg);
     _ac.RefreshAutocompleteForDatabase();
     _dataFilled = true;
 }
示例#6
0
 private void DomainForm_Load(object sender, EventArgs e)
 {
     SetCombo();
     DataToEdit();
     DataFilled = true;
     ShowCaptions();
     AddExcamples();
     ClearDevelopDesign(FbXpertMainForm.Instance().DevelopDesign);
     SetDesign(FbXpertMainForm.Instance().AppDesign);
     ac = new AutocompleteClass(fctSQL, _dbReg);
     ac.RefreshAutocompleteForDatabase();
 }
示例#7
0
 private void IndexForm_Load(object sender, EventArgs e)
 {
     DataFilled = false;
     cbTables.Items.Clear();
     cbTables.Items.AddRange(_tables.ToArray());
     cbTables.Text = TableObject.Name;
     DataToEdit();
     oldIndexColumnName = txtIndexName.Text.Trim();
     DataFilled         = true;
     MakeSQL();
     ac = new AutocompleteClass(fctSQL, _dbReg);
     ac.RefreshAutocompleteForDatabase();
 }
示例#8
0
        private void EventsForm_Load(object sender, EventArgs e)
        {
            triggers = StaticTreeClass.GetAllTriggerObjects(_dbReg);
            lvEvents.Items.Clear();
            SetCombo();
            LoadUserDesign();
            DataToEdit();

            ClearDevelopDesign(FbXpertMainForm.Instance().DevelopDesign);
            SetDesign(FbXpertMainForm.Instance().AppDesign);
            ac = new AutocompleteClass(fctSQL, _dbReg);
            ac.RefreshAutocompleteForDatabase();
            RefreshLanguageText();
            Restart();
        }
示例#9
0
        private void SQLViewForm_Load(object sender, EventArgs e)
        {
            txtSQL.Clear();
            UserStart();
            Testlauf();
            EditMode(cbEditMode.Checked);
            Text = DevelopmentClass.Instance().GetDBInfo(_dbReg, "SQLView for ");
            _ac  = new AutocompleteClass(txtSQL, _dbReg);
            _ac.RefreshAutocompleteForDatabase();
            hsBreak.Enabled = false;

            int n = LoadHistory(_lastSort);

            txtRowHeight.Text = dgvResults.RowTemplate.Height.ToString();
            txtSQL.Focus();
            SetEncoding();
        }
示例#10
0
        private void ForeignKeyForm_Load(object sender, EventArgs e)
        {
            DataFilled = false;

            FillCombo();

            ForeignKeyObject       = GetFK(FKName);
            txtConstraintName.Text = $@"FK_{TableName}_NEW";
            UpdateForeignKeyObject();
            old_constraint_name = ForeignKeyObject.Name;
            SetEnables();
            DataToEdit();

            ac = new AutocompleteClass(fctSQL, _dbReg);
            ac.RefreshAutocompleteForDatabase();
            DataFilled = true;
            if (!string.IsNullOrEmpty(TableName))
            {
                cbSourceTable.Text = TableName;
            }
            MakeSQL();
            splitContainer1.SplitterDistance = 500;
            txtConstraintName.Enabled        = !(BearbeitenMode == StateClasses.EditStateClass.eBearbeiten.eEdit);
        }