private void SubsystemConfigUpdated(object sender, ConfigUpdatedEventArgs e) { var subsystem = (ISubsystem)sender; subsystem.ApplyNewConfig(Config.Subsystems[subsystem.Name]); ConfigUpdated.RaiseEvent(this, e); }
private async Task RaiseConfigUpdatedEventAsync() { await Logger.RaiseAsync(LogSeverity.Debug, $"Command config updated {Config.Source.ToString().ToLower()} {Config.Name}"); ConfigUpdated?.Invoke(_config.Id, _config); }
public void ApplyChanges() { // save SaveConfig(); // fire. ConfigUpdated?.Invoke(this, EventArgs.Empty); }
public void DiscardChanges() { // unload the config. _config = null; // re-load. LoadInitialConfig(); // fire. ConfigUpdated?.Invoke(this, EventArgs.Empty); }
protected void RaiseConfigUpdatedEvent(ConfigUpdatedEventArgs e) { ConfigUpdated.RaiseEvent(this, e); }
protected virtual void OnConfigUpdated(EventArgs e) { ConfigUpdated?.Invoke(this, e); }
protected void RaiseConfigUpdated(EventArgs e) { ConfigUpdated?.Invoke(this, e); }
private void checkboxEnable_CheckedChanged(object sender, EventArgs e) { _configuration.Enable = checkboxEnable.Checked; ConfigUpdated?.Invoke(); }
public void OnConfigClicked() { ConfigUpdated?.Invoke(); }
private static void Apply(ComboMeterConfig current) { ConfigUpdated?.Invoke(current); }