private void BtnAdd_OnClick(object sender, RoutedEventArgs e) { var window = new CellWindow(null); window.Owner = this; window.ShowDialog(); SetCellsValues(); }
private void LvCells_OnMouseDoubleClick(object sender, MouseButtonEventArgs e) { var currentCell = lvCells.SelectedItem as LVCellsItems; if (currentCell == null) { return; } Cell cell; using (var uow = new UnitOfWork()) { cell = uow.Cells.GetCell(currentCell.Id); } var window = new CellWindow(cell); window.Owner = this; window.ShowDialog(); SetCellsValues(); }