protected override void Execute(NativeActivityContext context) { var filename = Filename.Get(context); GenericTools.RunUI(() => { try { var f = new Playback(filename); f.ShowDialog(); } catch (Exception ex) { Log.Error(ex.ToString()); } }); }