Пример #1
0
 /// <summary>
 /// Force the visualiser to store its value (i.e. write the value that is displayed to the registry).
 /// </summary>
 public override void Write()
 {
     try
     {
         object convertedVal = Converter.ConvertFromString(Text);
         Pending = true;
         SynchronisationHandler.SynchroniseSet(Registry, Key, convertedVal, val => Pending = false, e => Errored = true);
     }
     catch (Exception)
     {
         Errored = true;
     }
 }
Пример #2
0
 /// <summary>
 /// Force the visualiser to store its value (i.e. write the value that is displayed to the registry).
 /// </summary>
 public override void Write()
 {
     try
     {
         T convertedValue = (T)Converter.ConvertFromString(Text);
         Pending = true;
         SynchronisationHandler.SynchroniseSet(Registry, Key, convertedValue, val =>
         {
             Pending = false;
             Errored = false;
         }, e => Errored = true);
     }
     catch (Exception)
     {
         Errored = true;
         throw;
     }
 }
Пример #3
0
 /// <summary>
 /// Force the visualiser to store its value (i.e. write the value that is displayed to the registry).
 /// </summary>
 public override void Write()
 {
     SynchronisationHandler.SynchroniseSet(Registry, Key, (double)_values[SelectedIndex], val => Pending = false, e => Errored = true);
 }
Пример #4
0
 /// <summary>
 /// Force the visualiser to store its value (i.e. write the value that is displayed to the registry).
 /// </summary>
 public override void Write()
 {
     Pending = true;
     SynchronisationHandler.SynchroniseSet(Registry, Key, Object, val => Pending = false, e => Errored = true);
 }