public static void ShowDialog(string path, FileNameFormat fn) { FileMarkerDialog dlg = new FileMarkerDialog(path, fn); dlg.Owner = MainForm.Main; dlg.ShowDialog(); }
private void btnMarkFiles_Click(object sender, EventArgs e) { FileMarkerDialog.ShowDialog(ddUrl.Text, new FileNameFormat(gvFiles.SelectedCells[2].Value.ToString(), (EPFORMAT)ddFormat.SelectedValue)); }