Ejemplo n.º 1
0
        public async Task ShowTaskSet(BO.Category c)
        {
            this.category = c;
            this.taskSet  = await proxy.TaskSetAsync(c.CategoryID, am.Token);

            this.task = null;
        }
Ejemplo n.º 2
0
 public static Category POCategory(BO.Category cat)
 {
     return(new Category
     {
         CategoryID = cat.CategoryID,
         CategoryName = cat.CategoryName
     });
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Ereignisbehandlung: Benutzer l�scht Kategorie
        /// </summary>
        /// <param name="c">zu l�schende Kategorie</param>
        public async System.Threading.Tasks.Task RemoveCategory(BO.Category c)
        {
            // R�ckfrage (Browser-Dialog via JS!)
            if (!await js.InvokeAsync <bool>("confirm", "Remove Category #" + c.CategoryID + ": " + c.Name + "?"))
            {
                return;
            }
            // L�schen via WebAPI-Aufruf
            await proxy.DeleteCategoryAsync(c.CategoryID, am.Token);

            // Liste der Kategorien neu laden
            await ShowCategorySet();

            // aktuelle Category zur�cksetzen
            this.category = null;
            // SignalR-Nachricht senden
            await hubConnection.SendAsync("SendCategoryListUpdate", user.Identity.Name);
        }