private void spinEditTotal_EditValueChanged(object sender, EventArgs e) { if (_loading) { return; } Data.Total = spinEditTotal.Value; InvestmentChanged?.Invoke(this, EventArgs.Empty); RaiseDataChanged(); }
private void ckTotal_CheckedChanged(object sender, EventArgs e) { layoutControlItemTotalValue.Enabled = checkEditTotal.Checked; if (_loading) { return; } spinEditTotal.Value = checkEditTotal.Checked ? spinEditTotal.Value : 0; Data.ShowTotal = checkEditTotal.Checked; InvestmentChanged?.Invoke(this, EventArgs.Empty); RaiseDataChanged(); }