Ejemplo n.º 1
0
        private void Back_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            Page   p    = new SelectShow();
            Window main = Window.GetWindow(this);

            ((MainWindow)main).SetFrame(p);
        }
Ejemplo n.º 2
0
        private string checkNameExists()
        {
            string showNameNoSpaces = showName.Replace(" ", "+");
            string getName          = DownloadFromApi.apiGet("https://api.thetvdb.com/search/series?name=" + showNameNoSpaces, token, 0);

            info = getName;
            if (info == "Error")
            {
                return("Error!");
            }
            var w = new SelectShow(info);

            w.ShowDialog();
            return(w.Return);
        }
Ejemplo n.º 3
0
        private void findShow_Click(object sender, RoutedEventArgs e)
        {
            string showNameNoSpaces = textBox_Copy.Text.Replace(" ", "+");
            string getName          = DownloadFromApi.apiGet("https://api.thetvdb.com/search/series?name=" + showNameNoSpaces, tkn, 0);

            info = getName;
            if (info == "Error")
            {
                MessageBox.Show("Re-check your data or make sure that you are connected to the internet.");
            }
            else
            {
                var w = new SelectShow(info);
                w.ShowDialog();
                ID = w.Return;
                enableStart();
            }
        }
Ejemplo n.º 4
0
        private void MainFrame_Loaded(object sender, RoutedEventArgs e)
        {
            Page s = new SelectShow();

            MainFrame.Content = s;
        }