示例#1
0
        public void View(string path, ContextObject context)
        {
            var apk = AAPTool.Decompile(path);

            if (apk.IsEmpty)
            {
                context.ViewerContent = new System.Windows.Controls.Label()
                {
                    Content             = "Can not load package.",
                    Foreground          = System.Windows.Media.Brushes.White,
                    FontSize            = 16,
                    VerticalAlignment   = VerticalAlignment.Center,
                    HorizontalAlignment = HorizontalAlignment.Center,
                };
            }
            else
            {
                context.ViewerContent = new ViewerPane(context)
                {
                    ApkInfo = apk
                };
            }

            context.IsBusy = false;
        }
示例#2
0
 public void Init() => AAPTool.Init();