private void DefaultForm_Load(object sender, EventArgs e) { ofdSQL.InitialDirectory = DBStaticData.ChangeToFullPath(_actScriptingDbReg.InitialScriptingPath); GetDatabases(); ShowCaptions(); Anzeige(); SetFilesVibibilies(); tabScripting.SelectedTab = tabSQL; if (fcbSQL.Lines.Count > 0) { fcbSQL.Enabled = true; } hsRunSQLDirect.Enabled = false; hsExecuteSQL.Enabled = fcbSQL.LinesCount > 0; }
private void DefaultForm_Load(object sender, EventArgs e) { FormDesign.SetFormLeft(this); ofdSQL.InitialDirectory = DBStaticData.ChangeToFullPath(AppSettingsClass.Instance.PathSettings.ScriptingPath); GetDatabases(); ShowCaptions(); Anzeige(); SetFilesVibibilies(); tabScripting.SelectedTab = tabSQL; if (fcbSQL.Lines.Count > 0) { fcbSQL.Enabled = true; } hsRunSQLDirect.Enabled = false; hsPrepareCommands.Enabled = fcbSQL.LinesCount > 0; // SEHotSpot.Controller.Instance().SetHookForm(this); // SEHotSpot.Controller.Instance().SetupKeyboardHooks(this); // ctrl = new SEHotSpot.Controller(); //ctrl.SetupKeyboardHooks(this); }
private void hsChangeFullPath_Click(object sender, EventArgs e) { txtLocation.Text = DBStaticData.IsFullPath(txtLocation.Text) ? DBStaticData.ChangeToShortPath(txtLocation.Text) : DBStaticData.ChangeToFullPath(txtLocation.Text); }