Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public HelpdeskGroupDeleted(HelpdeskGroup helpdeskGroup)
 {
     this.HelpdeskGroup = helpdeskGroup;
 }
Esempio n. 4
0
 public HelpdeskGroupAdded(HelpdeskGroup helpdeskGroup)
 {
     this.HelpdeskGroup = helpdeskGroup;
 }