private void OnAItemChangedReloadVal4s() { List <String> tempListStringVal4s = new List <String>(); foreach (ExcelA item in MyCollectionA.ToList()) { String temp = item.Val1.ToString() + " " + item.Val2.ToString(); item.Val4 = temp; tempListStringVal4s.Add(temp); } MyCollectionExcelAValue12 = new ObservableCollection <String>(tempListStringVal4s); }
// Export-Commands private void ExportExcelA() { _manager.StoreCollectionA(MyCollectionA.ToList(), SelectedMonth); _manager.OpenExcelA(SelectedMonth); }
// CRUD-Commands private void AddEntryExcelA() { MyCollectionA.Add(AddExcelA); OnBItemChangedReloadGrid(MyActiveItemB); AddExcelA = new ExcelA(); }
private void OnBItemChangedReloadGrid(String newValue) { MyCollectionBForTable = new ObservableCollection <ExcelA>(_manager.LoadCollectionForExcelBValue(newValue, MyCollectionA.ToList())); foreach (var x in MyCollectionB) { if (x.Val3Main.Equals(newValue)) { CurrExcelBEntry = x; break; } } }
public void StoreAllCollections() { this._manager.StoreCollectionA(MyCollectionA.ToList(), SelectedMonth); this._manager.StoreCollectionB(MyCollectionB.ToList()); this._manager.StoreCollectionC(MyCollectionC.ToList(), SelectedMonth); }