private void OnEditValueChanged(object sender, EventArgs e)
 {
     if (AllowToSave)
     {
         SlideContainer.RaiseDataChanged();
     }
 }
 private void OnInvestmentEditValueChanged(object sender, EventArgs e)
 {
     if (!AllowToSave)
     {
         return;
     }
     SlideContainer.EditedContent.SimpleSummaryState.MonthlyValue = simpleSummaryItemContainer.TotalMonthlyValue == (decimal?)spinEditMonthly.EditValue ? null : (decimal?)spinEditMonthly.EditValue;
     SlideContainer.EditedContent.SimpleSummaryState.TotalValue   = simpleSummaryItemContainer.TotalTotalValue == (decimal?)spinEditTotal.EditValue ? null : (decimal?)spinEditTotal.EditValue;
     SlideContainer.RaiseDataChanged();
 }
 private void OnItemCollectionChanged(object sender, EventArgs e)
 {
     SlideContainer.RaiseDataChanged();
     UpdateTotalItems();
     UpdateTotalValues();
 }
 private void OnAddItemClick(object sender, EventArgs e)
 {
     simpleSummaryItemContainer.AddItem();
     UpdateTotalItems();
     SlideContainer.RaiseDataChanged();
 }
Exemple #5
0
 public void RaiseDataChanged()
 {
     _dataChanged = true;
     SlideContainer.RaiseDataChanged();
 }