コード例 #1
0
 /// <summary>
 /// Called when data loaded.
 /// </summary>
 /// <param name="Result">If set to <c>true</c> operation succeeded; Otherwise some errors found.</param>
 public override void OnDataLoaded(bool Result)
 {
     //Step 5.2.: Serialize
     if (Result)
     {
         ParameterControlRef.SetDialog();
         NoteControlRef.SetDialog();
     }
 }
コード例 #2
0
        /// <summary>
        /// Called during closing module.
        /// </summary>
        public override void OnClose()
        {
            //Step 4.10.: Extension class
            base.OnClose();

            NoteControlRef.Release();

            if (ExtensionRef != null)
            {
                ExtensionRef.OnClose();
            }
        }
コード例 #3
0
        /// <summary>
        /// Activates or deactivates layout - module can modify layout before or after activation.
        /// </summary>
        /// <param name="LItem">The layout item.</param>
        /// <param name="Activate">If set to <c>true</c> activate.</param>
        public override void OnActivateLayout(REXLayoutItem LItem, bool Activate)
        {
            //Step 4.6.: Extension class
            base.OnActivateLayout(LItem, Activate);

            ParameterControlRef.SetData();
            NoteControlRef.SetDialog();

            if (ExtensionRef != null)
            {
                ExtensionRef.OnActivateLayout(LItem, Activate);
            }
        }
コード例 #4
0
        /// <summary>
        /// Set data on dialogs.
        /// </summary>
        public override void OnSetDialogs()
        {
            //Step 4.5.: Extension class
            base.OnSetDialogs();

            NoteControlRef.SetDialog();
            ParameterControlRef.SetDialog();

            Layout.SelectLayout("Parameters");

            if (ExtensionRef != null)
            {
                ExtensionRef.OnSetDialogs();
            }
        }