private void QueryEditorOnTextChanged(object sender, EventArgs eventArgs) { if (_isLoading) { return; } try { string sql; string alias; //ensure it's all on one line _querySyntaxHelper.SplitLineIntoSelectSQLAndAlias(QueryEditor.Text, out sql, out alias); ExtractionInformation.SelectSQL = sql; ExtractionInformation.Alias = alias; ExtractionInformation.Check(new ThrowImmediatelyCheckNotifier()); ExtractionInformation.GetRuntimeName(); ragSmiley1.Reset(); } catch (Exception e) { ragSmiley1.Fatal(e); } }
/// <summary> /// Adds check buttons to the tool strip and sets up <see cref="StartChecking"/> to target the return value of <paramref name="checkableFunc"/>. If the method throws the /// Exception will be exposed in the checking system. /// /// <para>Only use this method if there is a reasonable chance the <paramref name="checkableFunc"/> will crash otherwise use the normal overload</para> /// </summary> /// <param name="checkableFunc"></param> public void AddChecks(Func <ICheckable> checkableFunc) { _runChecksToolStripButton.Enabled = true; try { _checkable = checkableFunc(); } catch (Exception e) { //covers the case where you have previously passed checks then fail but _checks points to the old passing one _checkable = null; _ragSmileyToolStrip.Fatal(e); } }
private void CheckComponent() { try { var factory = new RuntimeTaskFactory(Activator.RepositoryLocator.CatalogueRepository); var lmd = _processTask.LoadMetadata; var argsDictionary = new LoadArgsDictionary(lmd, new HICDatabaseConfiguration(lmd).DeployInfo); var mefTask = (IMEFRuntimeTask)factory.Create(_processTask, argsDictionary.LoadArgs[_processTask.LoadStage]); _ragSmiley.StartChecking(mefTask.MEFPluginClassInstance); } catch (Exception e) { _ragSmiley.Fatal(e); } }
/// <summary> /// Adds check buttons to the tool strip and sets up <see cref="StartChecking"/> to target the return value of <paramref name="checkableFunc"/>. If the method throws the /// Exception will be exposed in the checking system. /// /// <para>Only use this method if there is a reasonable chance the <paramref name="checkableFunc"/> will crash otherwise use the normal overload</para> /// </summary> /// <param name="checkableFunc"></param> public void AddChecks(Func <ICheckable> checkableFunc) { if (_ragSmileyToolStrip == null) { _ragSmileyToolStrip = new RAGSmileyToolStrip((Control)_hostControl); } Add(_ragSmileyToolStrip); Add(_runChecksToolStripButton); try { _checkable = checkableFunc(); } catch (Exception e) { //covers the case where you have previously passed checks then fail but _checks points to the old passing one _checkable = null; _ragSmileyToolStrip.Fatal(e); } }