コード例 #1
0
ファイル: CellsWindow.xaml.cs プロジェクト: kharlov-art/WMS
 private void BtnAdd_OnClick(object sender, RoutedEventArgs e)
 {
     var window = new CellWindow(null);
     window.Owner = this;
     window.ShowDialog();
     SetCellsValues();
 }
コード例 #2
0
ファイル: CellsWindow.xaml.cs プロジェクト: kharlov-art/WMS
        private void BtnAdd_OnClick(object sender, RoutedEventArgs e)
        {
            var window = new CellWindow(null);

            window.Owner = this;
            window.ShowDialog();
            SetCellsValues();
        }
コード例 #3
0
ファイル: CellsWindow.xaml.cs プロジェクト: kharlov-art/WMS
        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();
        }
コード例 #4
0
ファイル: CellsWindow.xaml.cs プロジェクト: kharlov-art/WMS
        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();
        }