private void expandable_propertiesChanged(propertiesChangedEventArgs e) { if (propertiesChanged != null) { propertiesChanged(new propertiesChangedEventArgs { propName = e.propName, newValue = e.newValue }); } }
private void props_propertiesChanged(propertiesChangedEventArgs e) { propertiesDictionary[e.propName] = e.newValue; if (propertiesDictionary["Total Income"] != 0) { propertiesDictionary["Remaining"] = propertiesDictionary["Total Income"] - propertiesDictionary.Values.Skip(1).Take(8).Sum(); } else { propertiesDictionary["Remaining"] = 0; } PictureBox1.Invalidate(); }