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; }); } }
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; }); } }
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; }); } }