void btnRandomEpisode_Click(object sender, RoutedEventArgs e)
        {
            if (!(DataContext is VM_GroupFilter gf))
            {
                return;
            }

            RandomEpisodeForm frm = new RandomEpisodeForm {
                Owner = Window.GetWindow(this)
            };

            frm.Init(RandomSeriesEpisodeLevel.GroupFilter, gf);
            frm.ShowDialog();
        }
示例#2
0
        void btnRandomEpisode_Click(object sender, RoutedEventArgs e)
        {
            AnimeGroupVM grp = this.DataContext as AnimeGroupVM;

            if (grp == null)
            {
                return;
            }

            MainWindow mainwdw = (MainWindow)Window.GetWindow(this);

            RandomEpisodeForm frm = new RandomEpisodeForm();

            frm.Owner = Window.GetWindow(this);;
            frm.Init(RandomSeriesEpisodeLevel.Group, grp);
            bool?result = frm.ShowDialog();
        }
        void btnRandomEpisode_Click(object sender, RoutedEventArgs e)
        {
            VM_GroupFilter gf = DataContext as VM_GroupFilter;

            if (gf == null)
            {
                return;
            }

            MainWindow mainwdw = (MainWindow)Window.GetWindow(this);

            RandomEpisodeForm frm = new RandomEpisodeForm();

            frm.Owner = Window.GetWindow(this);;
            frm.Init(RandomSeriesEpisodeLevel.GroupFilter, gf);
            bool?result = frm.ShowDialog();
        }