//changing cells private void OnTableViewCellChanged(object sender, CellValueChangedEventArgs e) { Guid guid = ((Item)e.Row).OidUnit; string cell = ((Item)e.Row).StoreCell; if (core.CheckCellExists(cell)) { core.UpdateStoreCell(guid, previousStoreCellValue, cell); primaryViewModel.ListItems = core.CurrentPrimaryList; } else { string newCell = core.NormalizeStoreCell(cell); if (ConfirmationView("Добавить новую ячейку: " + newCell)) { primaryViewModel.SelectedItem = null; core.AddNewStoreCell(guid, newCell); primaryViewModel.ListCells = core.StoreCells; primaryViewModel.ListItems = core.CurrentPrimaryList; } else { ((Item)e.Row).StoreCell = previousStoreCellValue; } } }