public void ApplyMulticastRcvSettings(List <MulticastGroupSettings> newSettings) { var confString = JsonConvert.SerializeObject(newSettings); Properties.Settings.Default.MulticastReceiverSettings = confString; Properties.Settings.Default.Save(); var e = new MulticastRcvSettingsEventArgs(newSettings); OnMulticastRcvSettingsChanged(e); }
protected void OnMulticastRcvSettingsChanged(MulticastRcvSettingsEventArgs e) { Volatile.Read(ref MulticastRcvSettingsChanged)?.Invoke(this, e); }