private void AddHelpdeskGroupItem(HelpdeskGroup group) { var item = new NavigatingHamburgerItem(group.Name, Symbol.List, typeof(HelpdeskListViewModel)); item.AddParameter <HelpdeskListViewModel>(f => f.HelpdeskGroupId, group.Id); this._helpdeskGroupItems.Add(item); this.Application.Actions.Add(item); }
public async Task <HelpdeskGroup> AddHelpdeskGroupAsync(string name, int?customerI3D, bool onlyOwn, int?helpdeskTypeI3D, int?helpdeskStateI3D, string filterScript) { var item = new HelpdeskGroup { Id = Guid.NewGuid().ToString("N"), Name = name, CustomerI3D = customerI3D, OnlyOwn = onlyOwn, HelpdeskTypeI3D = helpdeskTypeI3D, HelpdeskStateI3D = helpdeskStateI3D, FilterScript = filterScript }; var helpdeskLists = await this.GetHelpdeskGroupsAsync(); helpdeskLists.Add(item); this._applicationStateService.Set(Key, helpdeskLists, UwCore.Services.ApplicationState.ApplicationState.Roaming); this._eventAggregator.PublishOnCurrentThread(new HelpdeskGroupAdded(item)); return(item); }
public HelpdeskGroupDeleted(HelpdeskGroup helpdeskGroup) { this.HelpdeskGroup = helpdeskGroup; }
public HelpdeskGroupAdded(HelpdeskGroup helpdeskGroup) { this.HelpdeskGroup = helpdeskGroup; }