@@ -164,22 +164,22 @@ private void refreshColumnValues(object sender, EventArgs e)
164164 tlvCic . RefreshObjects ( tlvCic . Objects . Cast < object > ( ) . ToArray ( ) ) ;
165165 }
166166
167- public override void SetDatabaseObject ( IActivateItems activator , CohortIdentificationConfiguration databaseObject )
167+ public override void SetDatabaseObject ( IActivateItems activator , Core . EntityFramework . Models . CohortIdentificationConfiguration databaseObject )
168168 {
169- base . SetDatabaseObject ( activator , databaseObject ) ;
170- version . Setup ( databaseObject , activator ) ;
171- Common . Configuration = databaseObject ;
172- Common . Compiler . CohortIdentificationConfiguration = databaseObject ;
173-
174- RebuildClearCacheCommand ( ) ;
175-
176- gbCicInfo . Text = $ "Name: { databaseObject . Name } ";
177- tbDescription . Text = $ "Description: { databaseObject . Description } ";
178- ticket . TicketText = databaseObject . Ticket ;
179- if ( databaseObject . IsTemplate )
180- {
181- version . Visible = false ;
182- }
169+ // base.SetDatabaseObject(activator, databaseObject);
170+ // version.Setup(databaseObject, activator);
171+ // Common.Configuration = databaseObject;
172+ // Common.Compiler.CohortIdentificationConfiguration = databaseObject;
173+
174+ // RebuildClearCacheCommand();
175+
176+ // gbCicInfo.Text = $"Name: {databaseObject.Name}";
177+ // tbDescription.Text = $"Description: {databaseObject.Description}";
178+ // ticket.TicketText = databaseObject.Ticket;
179+ // if (databaseObject.IsTemplate)
180+ // {
181+ // version.Visible = false;
182+ // }
183183 if ( _commonFunctionality == null )
184184 {
185185 activator . RefreshBus . Subscribe ( this ) ;
@@ -203,35 +203,35 @@ public override void SetDatabaseObject(IActivateItems activator, CohortIdentific
203203 tlvCic . SelectedIndex = 0 ;
204204 }
205205
206- CommonFunctionality . AddToMenu ( cbIncludeCumulative ) ;
207- CommonFunctionality . AddToMenu ( new ToolStripSeparator ( ) ) ;
208- CommonFunctionality . AddToMenu ( new ExecuteCommandSetQueryCachingDatabase ( Activator , databaseObject ) ) ;
209- CommonFunctionality . AddToMenu ( new ExecuteCommandClearQueryCache ( Activator , databaseObject ) ) ;
210- CommonFunctionality . AddToMenu ( new ExecuteCommandCreateNewQueryCacheDatabase ( activator , databaseObject ) ) ;
211- CommonFunctionality . AddToMenu (
212- new ExecuteCommandSet ( activator , databaseObject , databaseObject . GetType ( ) . GetProperty ( "Description" ) )
213- {
214- OverrideIcon =
215- Activator . CoreIconProvider . GetImage ( RDMPConcept . CohortIdentificationConfiguration , OverlayKind . Edit )
216- } ) ;
217- CommonFunctionality . AddToMenu ( new ToolStripSeparator ( ) ) ;
218- CommonFunctionality . AddToMenu (
219- new ExecuteCommandShowXmlDoc ( activator , "CohortIdentificationConfiguration.QueryCachingServer_ID" ,
220- "Query Caching" ) , "Help (What is Query Caching)" ) ;
221- if ( ! databaseObject . IsTemplate )
222- {
223- CommonFunctionality . Add (
224- new ExecuteCommandCreateNewCohortByExecutingACohortIdentificationConfiguration ( activator , null ) . SetTarget (
225- databaseObject ) ,
226- "Commit Cohort" ,
227- activator . CoreIconProvider . GetImage ( RDMPConcept . ExtractableCohort , OverlayKind . Add ) ) ;
228- }
229- foreach ( var c in _timeoutControls . GetControls ( ) )
230- CommonFunctionality . Add ( c ) ;
231-
232- Common . QueryCachingServer = databaseObject . QueryCachingServer ;
233- Common . Compiler . CoreChildProvider = activator . CoreChildProvider ;
234- Common . RecreateAllTasks ( ) ;
206+ // CommonFunctionality.AddToMenu(cbIncludeCumulative);
207+ // CommonFunctionality.AddToMenu(new ToolStripSeparator());
208+ // CommonFunctionality.AddToMenu(new ExecuteCommandSetQueryCachingDatabase(Activator, databaseObject));
209+ // CommonFunctionality.AddToMenu(new ExecuteCommandClearQueryCache(Activator, databaseObject));
210+ // CommonFunctionality.AddToMenu(new ExecuteCommandCreateNewQueryCacheDatabase(activator, databaseObject));
211+ // CommonFunctionality.AddToMenu(
212+ // new ExecuteCommandSet(activator, databaseObject, databaseObject.GetType().GetProperty("Description"))
213+ // {
214+ // OverrideIcon =
215+ // Activator.CoreIconProvider.GetImage(RDMPConcept.CohortIdentificationConfiguration, OverlayKind.Edit)
216+ // });
217+ // CommonFunctionality.AddToMenu(new ToolStripSeparator());
218+ // CommonFunctionality.AddToMenu(
219+ // new ExecuteCommandShowXmlDoc(activator, "CohortIdentificationConfiguration.QueryCachingServer_ID",
220+ // "Query Caching"), "Help (What is Query Caching)");
221+ // if (!databaseObject.IsTemplate)
222+ // {
223+ // CommonFunctionality.Add(
224+ // new ExecuteCommandCreateNewCohortByExecutingACohortIdentificationConfiguration(activator, null).SetTarget(
225+ // databaseObject),
226+ // "Commit Cohort",
227+ // activator.CoreIconProvider.GetImage(RDMPConcept.ExtractableCohort, OverlayKind.Add));
228+ // }
229+ // foreach (var c in _timeoutControls.GetControls())
230+ // CommonFunctionality.Add(c);
231+
232+ // Common.QueryCachingServer = databaseObject.QueryCachingServer;
233+ // Common.Compiler.CoreChildProvider = activator.CoreChildProvider;
234+ // Common.RecreateAllTasks();
235235 }
236236
237237 /// <summary>
@@ -423,6 +423,6 @@ private void cbKnownVersions_SelectedIndexChanged(object sender, EventArgs e)
423423[ TypeDescriptionProvider (
424424 typeof ( AbstractControlDescriptionProvider < CohortIdentificationConfigurationUI_Design , UserControl > ) ) ]
425425public abstract class
426- CohortIdentificationConfigurationUI_Design : RDMPSingleDatabaseObjectControl < CohortIdentificationConfiguration >
426+ CohortIdentificationConfigurationUI_Design : RDMPSingleDatabaseObjectControl < Core . EntityFramework . Models . CohortIdentificationConfiguration >
427427{
428428}
0 commit comments