Use EventHandler<StringEventArgs> for SettingChanged event
- Issue MatterHackers/MCCentral#4730 Event should declare specialized EventArgs used via EventHandler<T>
This commit is contained in:
parent
b6d30bf781
commit
f06e67a65e
19 changed files with 37 additions and 41 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue