Exemple #1
0
 private void BtnAdd_OnClick(object sender, RoutedEventArgs e)
 {
     var window = new CellWindow(null);
     window.Owner = this;
     window.ShowDialog();
     SetCellsValues();
 }
Exemple #2
0
        private void BtnAdd_OnClick(object sender, RoutedEventArgs e)
        {
            var window = new CellWindow(null);

            window.Owner = this;
            window.ShowDialog();
            SetCellsValues();
        }
Exemple #3
0
        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();
        }
Exemple #4
0
        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();
        }