Ejemplo n.º 1
0
 private void _appSettings_AfterConfigurationObjectLoaded(object sender, ChoConfigurationObjectEventArgs e)
 {
     if (_wndLoaded)
     {
         this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal,
                                new Action(() =>
         {
             this.DataContext      = null;
             this.DataContext      = this;
             txtRoboCopyCmd.Text   = _appSettings.GetCmdLineText();
             txtRoboCopyCmdEx.Text = _appSettings.GetCmdLineTextEx();
             IsDirty = false;
         }));
     }
     else
     {
         this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal,
                                new Action(() =>
         {
             txtRoboCopyCmd.Text   = _appSettings.GetCmdLineText();
             txtRoboCopyCmdEx.Text = _appSettings.GetCmdLineTextEx();
             IsDirty = false;
         }));
     }
 }
Ejemplo n.º 2
0
 private void _appSettings_AfterConfigurationObjectPersisted(object sender, ChoConfigurationObjectEventArgs e)
 {
     //SaveSettings();
 }