Use EventHandler<StringEventArgs> for SettingChanged event

- Issue MatterHackers/MCCentral#4730
Event should declare specialized EventArgs used via EventHandler<T>
This commit is contained in:
John Lewin 2018-12-20 12:38:05 -08:00
parent b6d30bf781
commit f06e67a65e
19 changed files with 37 additions and 41 deletions

View file

@ -950,9 +950,9 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
List<SectionWidget> widgetsThatWereExpanded = new List<SectionWidget>();
private SystemWindow systemWindow;
private void Printer_SettingChanged(object s, EventArgs e)
private void Printer_SettingChanged(object s, StringEventArgs stringEvent)
{
if (e is StringEventArgs stringEvent)
if (stringEvent != null)
{
string settingsKey = stringEvent.Data;
if (this.allUiFields.TryGetValue(settingsKey, out UIField uifield))