예제 #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; });
            }
        }