示例#1
0
        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);
        }
示例#2
0
文件: Program.cs 项目: sticks/flint
        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);
            }
        }