Beispiel #1
0
        private void ActivateExt(object sender, MouseButtonEventArgs e)
        {
            var s = sender as ListViewItem;
            var c = s.Content as Extension;

            c.Selected = !c.Selected;
            media.ReloadMedia(Sources.SelectedValue as ObservableCollection <Media>);
        }
Beispiel #2
0
        protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
        {
            int idx = main.Sources.SelectedIndex;

            if (idx >= 0)
            {
                media.ReloadMedia(media.Sources.ElementAt(idx).Value);
            }
            else
            {
                media.LoadExtensions();
            }
            main.extdia = null;
            base.OnClosing(e);
        }