Rename Changed event to SettingChanged, pass key with EventArg

This commit is contained in:
John Lewin 2018-09-07 14:27:57 -07:00
parent 15899a1cd6
commit 3a9e114d59
2 changed files with 10 additions and 6 deletions

View file

@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using MatterHackers.Agg;
using MatterHackers.Agg.UI;
using MatterHackers.MatterControl.DataStorage;
using Newtonsoft.Json;
@ -93,7 +94,7 @@ namespace MatterHackers.MatterControl
this.Language = this.get("Language");
}
public event EventHandler Changed;
public event EventHandler<StringEventArgs> SettingChanged;
public static UserSettings Instance
{
@ -173,7 +174,7 @@ namespace MatterHackers.MatterControl
setting.Value = value;
setting.Commit();
Changed?.Invoke(this, null);
SettingChanged?.Invoke(this, new StringEventArgs(key));
}
public double LibraryViewWidth