Beispiel #1
0
        private void SubsystemConfigUpdated(object sender, ConfigUpdatedEventArgs e)
        {
            var subsystem = (ISubsystem)sender;

            subsystem.ApplyNewConfig(Config.Subsystems[subsystem.Name]);
            ConfigUpdated.RaiseEvent(this, e);
        }
Beispiel #2
0
 public void SetBlankPaperType(int blankMarker, PaperType type)
 {
     var args = new ConfigUpdatedEventArgs(
         Name, "BlankPaperType: " + blankMarker, BlanksPaperType[blankMarker], type);
     _scannerConfig.BlankPaperTypes.Cast<BlankPaperTypeConfig>().
         Where(pc => pc.BlankMarker == blankMarker).First().PaperType = type;
     RaiseConfigUpdatedEvent(args);
 }
Beispiel #3
0
 protected void RaiseConfigUpdatedEvent(ConfigUpdatedEventArgs e)
 {
     ConfigUpdated.RaiseEvent(this, e);
 }
Beispiel #4
0
 private void ApplicationConfigUpdated(object sender, ConfigUpdatedEventArgs e)
 {
     _currentConfig = Application.Config;
     _currentConfigXml = Application.Config.ToXml();
     SaveWorkingConfig();
     Logger.LogInfo(Message.ConfigSubsystemConfigUpdated,
                    e.UpdatedParameterName, e.SubsystemName, e.OldValue, e.NewValue);
 }
Beispiel #5
0
 protected void RaiseConfigUpdatedEvent(ConfigUpdatedEventArgs e)
 {
     ConfigUpdated.RaiseEvent(this, e);
 }