Пример #1
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);
            }
        }
Пример #2
0
        /// <summary>
        /// Get data from dialogs and sets Data's strucutres.
        /// </summary>
        public override void OnSetData()
        {
            //Step 4.7.: Extension class
            base.OnSetData();

            ParameterControlRef.SetData();

            if (string.IsNullOrEmpty(Data.FamilySymbol))
            {
                System.SystemBase.Errors.AddError("Error", "The family wasn't set", null);
            }

            if (ExtensionRef != null)
            {
                ExtensionRef.OnSetData();
            }
        }
Пример #3
0
 /// <summary>
 /// Called when data are saved.
 /// </summary>
 /// <returns>Returns true if succeeded.</returns>
 public override bool OnDataSave()
 {
     //Step 5.2.: Serialize
     ParameterControlRef.SetData();
     return(true);
 }