public void ApplyUnicastSndSettings(UnicastSettings newSettings) { var confString = JsonConvert.SerializeObject(newSettings); Properties.Settings.Default.UnicastSenderSettings = confString; Properties.Settings.Default.Save(); var e = new UnicastSndSettingsEventArgs(newSettings); OnUnicastSndeSettingsChanged(e); }
protected void OnUnicastSndeSettingsChanged(UnicastSndSettingsEventArgs e) { Volatile.Read(ref UnicastSndeSettingsChanged)?.Invoke(this, e); }