private void OnAddPrinterMap(object obj)
        {
            var map = new PrinterMap {
                MenuItemId = 0, MenuItemGroupCode = "*"
            };
            var mapModel = new PrinterMapViewModel(map, _menuService, _printerDao, _cacheService);

            Model.PrinterMaps.Add(map);
            PrinterMaps.Add(mapModel);
            _newPrinterMaps.Add(map);
        }
Beispiel #2
0
        private void OnAddPrinterMap(object obj)
        {
            var map = new PrinterMap {
                Department = Department.All, MenuItem = MenuItem.All, MenuItemGroupCode = "*"
            };
            var mapModel = new PrinterMapViewModel(map, _workspace);

            Model.PrinterMaps.Add(map);
            PrinterMaps.Add(mapModel);
            _newPrinterMaps.Add(map);
        }