Example #1
0
 private void btnOK_Click(object sender, EventArgs e)
 {
     if (Multi)
     {
         foreach (ListViewItem lvi in lvResults.Items)
         {
             if (lvi.Checked)
             {
                 urls.Add(mcResults[mcResults.Count - 1 - lvi.Index].Groups["link"].Value);
             }
         }
     }
     else
     {
         url = mcResults[mcResults.Count - 1 - cbResults.SelectedIndex].Groups["link"].Value;
         List <string> Languages = new List <string>();
         foreach (string s in Enum.GetNames(typeof(Helper.Languages)))
         {
             Languages.Add(s);
         }
         foreach (string s in Languages)
         {
             if (cbResults.SelectedItem.ToString().Contains(s))
             {
                 Language = (Helper.Languages)Enum.Parse(typeof(Helper.Languages), s);
             }
         }
     }
     DialogResult = DialogResult.OK;
     this.Close();
 }
Example #2
0
        private void initMembers()
        {
            source      = new Filepath();
            destination = new Filepath();

            nameOfSeries  = "";
            nameOfEpisode = "";

            season  = -1;
            episode = -1;

            isVideofile         = false;
            isSubtitle          = false;
            processingRequested = true;
            isMovie             = false;

            umlautUsage = UmlautAction.Unset;
            casing      = Case.Unset;
            createDirectoryStructure = DirectoryStructure.Unset;
            language           = Helper.Languages.None;
            ExtractedNameLevel = 0;
        }
Example #3
0
        private void initMembers()
        {
            originalPath    = new Filepath();
            destinationPath = new Filepath();

            showname     = "";
            episodeTitle = "";

            seasonNr  = -1;
            episodeNr = -1;

            isVideoFile         = false;
            isSubtitleFile      = false;
            processingRequested = true;
            isMovie             = false;

            umlautAction             = UmlautAction.Unset;
            caseAction               = CaseAction.Unset;
            directoryStructureAction = DirectoryStructureAction.Unset;
            language           = Helper.Languages.None;
            ExtractedNameLevel = 0;
        }
 private void btnOK_Click(object sender, EventArgs e)
 {
     if (Multi)
     {
         foreach (ListViewItem lvi in lvResults.Items)
         {
             if (lvi.Checked)
             {
                 urls.Add(mcResults[mcResults.Count - 1 - lvi.Index].Groups["link"].Value);
             }
         }
     }
     else
     {
         url = mcResults[mcResults.Count - 1 - cbResults.SelectedIndex].Groups["link"].Value;
         List<string> Languages = new List<string>();
         foreach (string s in Enum.GetNames(typeof(Helper.Languages)))
         {
             Languages.Add(s);
         }
         foreach (string s in Languages)
         {
             if (cbResults.SelectedItem.ToString().Contains(s))
             {
                 Language = (Helper.Languages)Enum.Parse(typeof(Helper.Languages), s);
             }
         }
     }
     DialogResult = DialogResult.OK;
     this.Close();
 }
Example #5
0
        private void initMembers()
        {
            source = new Filepath();
            destination = new Filepath();

            nameOfSeries = "";
            nameOfEpisode = "";

            season = -1;
            episode = -1;

            isVideofile = false;
            isSubtitle = false;
            processingRequested = true;
            isMovie = false;

            umlautUsage = UmlautAction.Unset;
            casing = Case.Unset;
            createDirectoryStructure = DirectoryStructure.Unset;
            language = Helper.Languages.None;
            ExtractedNameLevel = 0;
        }
Example #6
0
        private void initMembers()
        {
            originalPath = new Filepath();
            destinationPath = new Filepath();

            showname = "";
            episodeTitle = "";

            seasonNr = -1;
            episodeNr = -1;

            isVideoFile = false;
            isSubtitleFile = false;
            processingRequested = true;
            isMovie = false;

            umlautAction = UmlautAction.Unset;
            caseAction = CaseAction.Unset;
            directoryStructureAction = DirectoryStructureAction.Unset;
            language = Helper.Languages.None;
            ExtractedNameLevel = 0;
        }