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(); }
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(); } } }