Show/Hide Toolbars

Flynet Studio User Interface Generation Properties

When the UIProject property SeparateControlClasses is true this custom code property enables easy overrides for generated UI actions, such a click on a notebook navigation tab or button.

 

As generated, there is a class that inherits from a class of the same name only with CG appended representing Code Generated and this is the class that should be copied to this property if it is extended/enhanced from the code-generated form.

 

Here is an example of that generated class for a Notebook named Summary:

 

 #region User Controller Class (Preserve)

 // All user-written code in this region is preserved during code generation, simplifying

 // any ongoing merge requirements

 /// <summary>

 /// The NbkSummaryControl is the "active" class called by CodeBehind and other code.

 ///

 /// Override certain action handlers in this class to customize behavior over the default

 /// generated logic.

 /// </summary>

 public class NbkSummaryControl : NbkSummaryControlCG

 {

         public NbkSummaryControl(TaskSession ts)

                 base(ts)

         {

         }

 }

 #endregion User Controller Class

 

It is generally recommended that any changes to the User Controller Class be implemented and tested in the Visual Studio editor and that this property subsequently be populated/updated using the context-menu option "Visual Studio / Find Changes Made in the Visual Studio Solution" which you can access by right-clicking on the TaskProject containing the Notebook.