public OBSettingsSources() { InitializeComponent(); vm = Globals.obSettings.Sources; DataContext = vm; }
public void Reset() { OBSettingsSources def = new OBSettingsSources(); IList <PropertyInfo> props = new List <PropertyInfo>(typeof(OBSettingsSources).GetProperties()); foreach (PropertyInfo prop in props) { prop.SetValue(this, prop.GetValue(def, null)); } }