示例#1
0
        public static void OpenApp(object parameter)
        {
            TextBox context = parameter as TextBox;
            string  file    = FileDialog.ShowDialog("APK Android Package File (.apk)|*.apk", false);

            if (context != null)
            {
                context.Dispatcher.Invoke(() => { context.Text = file; });
            }
        }
示例#2
0
        public static void OpenBackup(object parameter)
        {
            TextBox context = parameter as TextBox;
            string  file    = FileDialog.ShowDialog("Android backup (.ab)|*.ab", false);

            if (context != null)
            {
                context.Dispatcher.Invoke(() => { context.Text = file; });
            }
        }
示例#3
0
        public static void OpenFile(object parameter)
        {
            TextBox context = parameter as TextBox;
            string  file    = FileDialog.ShowDialog(true);

            if (context != null)
            {
                context.Dispatcher.Invoke(() => { context.Text = file; });
            }
        }