Esempio n. 1
0
        public FileMarkerDialog(string path, FileNameFormat fn)
        {
            InitializeComponent();
            MainForm.Main.WindowState = FormWindowState.Normal;
            this.WindowState = MainForm.Main.WindowState;
            this.TopMost = MainForm.Main.TopMost;

            file = fn;
            fileformat = fn.Format;
            dirname = path;

            txtGroup.Text = fn.EstimateGroup();
            txtStart.Text = fn.EstimateEpisode();
            txtSeason.Text = fn.EstimateSeason();
            txtTitle.Text = fn.EstimateTitle();
        }
Esempio n. 2
0
        public FileMarkerDialog(string path, FileNameFormat fn)
        {
            InitializeComponent();
            MainForm.Main.WindowState = FormWindowState.Normal;
            this.WindowState          = MainForm.Main.WindowState;
            this.TopMost = MainForm.Main.TopMost;

            file       = fn;
            fileformat = fn.Format;
            dirname    = path;

            txtGroup.Text  = fn.EstimateGroup();
            txtStart.Text  = fn.EstimateEpisode();
            txtSeason.Text = fn.EstimateSeason();
            txtTitle.Text  = fn.EstimateTitle();
        }
Esempio n. 3
0
 private void LoadFormatFields()
 {
     if (!showFields || multiRun)
     {
         Console.WriteLine("----DENIED");
         return;
     }
     Console.WriteLine("----FORMATS");
     for (int i = 0; i < gvFiles.RowCount; i++)
     {
         if (!Directory.Exists(gvFiles.Rows[i].Cells[3].Value.ToString()))
         {
             FileNameFormat fn = new FileNameFormat(gvFiles.Rows[i].Cells[2].Value.ToString(), (EPFORMAT)ddFormat.SelectedValue);
             gvFiles.Rows[i].Cells[4].Value = fn.EstimateGroup();
             gvFiles.Rows[i].Cells[5].Value = fn.EstimateSeason();
             gvFiles.Rows[i].Cells[6].Value = fn.EstimateEpisode();
             gvFiles.Rows[i].Cells[7].Value = fn.EstimateCRC();
         }
     }
 }
Esempio n. 4
0
 private void LoadFormatFields()
 {
     if (!showFields || multiRun)
     {
         Console.WriteLine("----DENIED");
         return;
     }
     Console.WriteLine("----FORMATS");
     for (int i = 0; i < gvFiles.RowCount; i++)
     {
         if (!Directory.Exists(gvFiles.Rows[i].Cells[3].Value.ToString()))
         {
             FileNameFormat fn = new FileNameFormat(gvFiles.Rows[i].Cells[2].Value.ToString(), (EPFORMAT)ddFormat.SelectedValue);
             gvFiles.Rows[i].Cells[4].Value = fn.EstimateGroup();
             gvFiles.Rows[i].Cells[5].Value = fn.EstimateSeason();
             gvFiles.Rows[i].Cells[6].Value = fn.EstimateEpisode();
             gvFiles.Rows[i].Cells[7].Value = fn.EstimateCRC();
         }
     }
 }