private void OnPortionSelected(MenuItemPortion obj)
 {
     SelectedItem.UpdatePortion(obj, AppServices.MainDataContext.SelectedDepartment.PriceTag);
     SelectedTicket.RefreshVisuals();
     SelectedTicket.RecalculateTicket();
     if (SelectedItemPropertyGroups.Count == 0 && SelectedItemGroupedPropertyItems.Count == 0)
     {
         SelectedTicket.ClearSelectedItems();
     }
 }
        private void OnCloseCommandExecuted(string obj)
        {
            var unselectedItem = SelectedItemPropertyGroups.FirstOrDefault(x => x.ForceValue && SelectedItem.Properties.Count(y => y.Model.PropertyGroupId == x.Id) == 0);

            if (unselectedItem != null)
            {
                InteractionService.UserIntraction.GiveFeedback(string.Format(Resources.SelectionRequired_f, unselectedItem.Name));
                return;
            }

            _showTicketNoteEditor    = false;
            _showExtraPropertyEditor = false;
            _showFreeTagEditor       = false;
            _removeModifier          = false;
            FreeTag = string.Empty;
            SelectedTicket.ClearSelectedItems();
        }
Esempio n. 3
0
 private void OnChangeTable(string obj)
 {
     SelectedTicket.ClearSelectedItems();
     InvokeOnSelectTableRequested(EventArgs.Empty);
 }