public OrderFormingScreen(SelectStage stage) : this() { _stage = stage; _listControl = new ThumbnailListControl(Constants.OrderItemStyleName); if (!_listControl.Resources.MergedDictionaries.Contains(Resources)) { _listControl.Resources.MergedDictionaries.Add(Resources); } _listControl.AddFilterTab(new ApplyAllFilter(), (string)TryFindResource(Constants.TabAllTextKey)); foreach (PaperFormat format in ExecutionEngine.PriceManager.PaperFormats) { _listControl.AddFilterTab(new PaperSizeFilter(format), format.Name); } _listControl.ShowEmptyFilterTabs = false; ContentFrame.Content = _listControl; if (ExecutionEngine.Context.Contains(Constants.OrderContextName)) { _orderInfoControl.SetSource((Order)ExecutionEngine.Context[Constants.OrderContextName]); } _listControl.List.ItemChanged += new EventHandler(ListItemContentChangedHandler); _listControl.SetItemsLayout(Constants.OrderFormingScreenItemsInRow, Constants.OrderFormingScreenItemsInColumn); _listControl.ShowSelectAllButton = false; _currentOrder = (Order)ExecutionEngine.Context[Constants.OrderContextName]; }
public AdditionalServicesScreen(SelectStage stage) : this() { _stage = stage; }