/// <summary>
        /// Force the visualiser to update its value (i.e. display the value that is stored).
        /// </summary>
        public override void Read()
        {
            object obj = SynchronisationHandler.SynchroniseGet <object>(Registry, Key);

            if (Converter == null && obj != null)
            {
                Converter = TypeDescriptor.GetConverter(obj.GetType());
            }

            if (obj != null)
            {
                CurrentValue = obj;
                Text         = obj.ToString();
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Force the visualiser to update its value (i.e. display the value that is stored).
 /// </summary>
 public override void Read()
 {
     IsChecked = SynchronisationHandler.SynchroniseGet <bool>(Registry, Key);
 }