static async Task DeleteApp(Pebble pebble) { var applist = (await pebble.GetAppbankContentsAsync()).AppBank.Apps; Console.WriteLine("Choose an app to remove"); AppBank.App result = SharpMenu <AppBank.App> .WriteAndPrompt(applist); AppbankInstallResponse ev = await pebble.RemoveAppAsync(result); Console.WriteLine(ev.MsgType); }
static void DeleteApp(Pebble pebble) { var applist = pebble.GetAppbankContents().AppBank.Apps; Console.WriteLine("Choose an app to remove"); AppBank.App result = SharpMenu <AppBank.App> .WriteAndPrompt(applist); AppbankInstallMessageEventArgs ev = pebble.RemoveApp(result); if (ev != null) { Console.WriteLine(ev.MsgType); } }