Exemple #1
0
 private void bnOpenIgFolder_Click(object sender, System.EventArgs e)
 {
     if (this.lstFMIgnoreFolders.SelectedIndex != -1)
     {
         TVDoc.SysOpen(this.mDoc.MonitorFolders[this.lstFMIgnoreFolders.SelectedIndex]);
     }
 }
Exemple #2
0
        private void bnRSSGo_Click(object sender, System.EventArgs e)
        {
            // multiselection is off, so we can cheat...
            int[] rowsIndex = this.RSSGrid.Selection.GetSelectionRegion().GetRowsIndex();

            if (rowsIndex.Length > 0)
            {
                TVDoc.SysOpen((string)(this.RSSGrid[rowsIndex[0], 0].Value));
            }
        }
Exemple #3
0
        private void bnOpenSearchFolder_Click(object sender, System.EventArgs e)
        {
            int n = this.lbSearchFolders.SelectedIndex;

            if (n == -1)
            {
                return;
            }
            TVDoc.SysOpen(this.mDoc.SearchFolders[n]);
        }
Exemple #4
0
        private void bnNewFolderOpen_Click(object sender, System.EventArgs e)
        {
            if (this.lvFMNewShows.SelectedItems.Count == 0)
            {
                return;
            }
            FolderMonitorEntry ai = this.lvFMNewShows.SelectedItems[0].Tag as FolderMonitorEntry;

            if (ai != null)
            {
                TVDoc.SysOpen(ai.Folder);
            }
        }
Exemple #5
0
        private void button1_Click(object sender, System.EventArgs e)
        {
            double amount = 5.00; // default amount

            try
            {
                string s = Regex.Replace(this.comboBox1.Text, "\\$", "");
                amount = double.Parse(s);
            }
            catch
            {
            }

            string currency = this.comboBox2.Text;

            CultureInfo usCI = new CultureInfo("en-US", false);

            string paypalURL = "https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal%40tvrename%2ecom&item_name=TVRename%20thank-you%20drink&no_shipping=0&no_note=1&amount=" + amount.ToString("N", usCI) + "&tax=0&currency_code=" + currency + "&lc=AU&bn=PP%2dDonationsBF&charset=UTF%2d8";

            TVDoc.SysOpen(paypalURL);
        }
Exemple #6
0
        //private void ProcessAddItems(FolderMonitorEntryList toAdd)
        //{
        //    foreach (FolderMonitorEntry ai in toAdd)
        //    {
        //        if (ai.TheSeries == null)
        //            continue; // skip

        //        // see if there is a matching show item
        //        ShowItem found = null;
        //        foreach (ShowItem si in this.mDoc.GetShowItems(true))
        //        {
        //            if ((ai.TheSeries != null) && (ai.TheSeries.TVDBCode == si.TVDBCode))
        //            {
        //                found = si;
        //                break;
        //            }
        //        }
        //        this.mDoc.UnlockShowItems();
        //        if (found == null)
        //        {
        //           xxx
        //               ShowItem si = new ShowItem(this.mDoc.GetTVDB(false, ""));
        //            si.TVDBCode = ai.TheSeries.TVDBCode;
        //            //si->ShowName = ai->TheSeries->Name;
        //            this.mDoc.GetShowItems(true).Add(si);
        //            this.mDoc.UnlockShowItems();
        //            this.mDoc.GenDict();
        //            found = si;
        //        }

        //        if ((ai.FolderMode == FolderModeEnum.kfmFolderPerSeason) || (ai.FolderMode == FolderModeEnum.kfmFlat))
        //        {
        //            found.AutoAdd_FolderBase = ai.Folder;
        //            found.AutoAdd_FolderPerSeason = ai.FolderMode == FolderModeEnum.kfmFolderPerSeason;
        //            string foldername = "Season ";

        //            foreach (DirectoryInfo di in new DirectoryInfo(ai.Folder).GetDirectories("*Season *"))
        //            {
        //                string s = di.FullName;
        //                string f = ai.Folder;
        //                if (!f.EndsWith(System.IO.Path.DirectorySeparatorChar.ToString()))
        //                    f = f + System.IO.Path.DirectorySeparatorChar;
        //                f = Regex.Escape(f);
        //                s = Regex.Replace(s, f + "(.*Season ).*", "$1", RegexOptions.IgnoreCase);
        //                if (!string.IsNullOrEmpty(s))
        //                {
        //                    foldername = s;
        //                    break;
        //                }
        //            }

        //            found.AutoAdd_SeasonFolderName = foldername;
        //        }

        //        if ((ai.FolderMode == FolderModeEnum.kfmSpecificSeason) && (ai.SpecificSeason != -1))
        //        {
        //            if (!found.ManualFolderLocations.ContainsKey(ai.SpecificSeason))
        //                found.ManualFolderLocations[ai.SpecificSeason] = new StringList();
        //            found.ManualFolderLocations[ai.SpecificSeason].Add(ai.Folder);
        //        }

        //        this.mDoc.Stats().AutoAddedShows++;
        //    }

        //    this.mDoc.Dirty();
        //    toAdd.Clear();

        //    this.FillFMNewShowList(true);
        //}

        //private void GuessAll() // not all -> selected only
        //{
        //    foreach (FolderMonitorEntry ai in this.mDoc.AddItems)
        //        this.mDoc.MonitorGuessShowItem(ai);
        //    this.FillFMNewShowList(false);
        //}

        private void bnVisitTVcom_Click(object sender, System.EventArgs e)
        {
            if (lvFMNewShows.SelectedItems.Count == 0)
            {
                return;
            }

            FolderMonitorEntry fme = this.lvFMNewShows.SelectedItems[0].Tag as FolderMonitorEntry;

            if (fme == null)
            {
                return;
            }

            int code = fme.TVDBCode;

            if (code != -1)
            {
                TVDoc.SysOpen(this.mDoc.GetTVDB(false, "").WebsiteURL(code, -1, false));
            }
        }
Exemple #7
0
 public override void OnClick(SourceGrid.CellContext sender, EventArgs e)
 {
     TVDoc.SysOpen("http://www.imdb.com/find?s=nm&q=" + this.Who);
 }
Exemple #8
0
 private void bnBTOpenFolder_Click(object sender, System.EventArgs e)
 {
     TVDoc.SysOpen(this.txtFolder.Text);
 }
Exemple #9
0
 private void bnBTSecondOpen_Click(object sender, System.EventArgs e)
 {
     TVDoc.SysOpen(this.txtBTSecondLocation.Text);
 }