Exemple #1
0
 /// <summary>
 /// Called by the Environment when the user log's off
 /// </summary>
 public override void Close()
 {
     if (_myUserControl != null)
     {
         _myUserControl.Dispose();
     }
     _myUserControl = null;
 }
Exemple #2
0
        /// <summary>
        /// Create a UserControl to place on the options dialog.
        /// </summary>
        /// <returns></returns>
        public override OptionsDialogUserControl GenerateUserControl()
        {
            // Get hold of the default set of properties for this plugin (Saved under Id='PropertyDefinition.PropertyOptionsDialog')
            LoadProperties(true);
            _myUserControl = new PropertyOptionsDialogUserControl()
            {
                MyPropValue = GetProperty("MyProp")
            };

            // The following lines show how to access other set of properties, saved under id='PropertyDefinition.MyPropertyId'

            // GetOptionsConfiguration - Global
            System.Xml.XmlNode result = VideoOS.Platform.Configuration.Instance.GetOptionsConfiguration(PropertyDefinition.MyPropertyId, false);
            _myUserControl.MyPropShareGlobal = Utility.GetInnerText(result, "Empty");

            // GetOptionsConfiguration - Private
            result = VideoOS.Platform.Configuration.Instance.GetOptionsConfiguration(PropertyDefinition.MyPropertyId, true);
            _myUserControl.MyPropSharePrivate = Utility.GetInnerText(result, "Empty");
            return(_myUserControl);
        }