/// <summary> /// Send the Corrupte file path on to the Reprocessing.cs /// </summary> /// <returns></returns> private bool ReadCorruptQueuePath() { bool okay = true; string path = string.Empty; //Get the contents of the textbox path = Queuefiletxt.Text; if (string.IsNullOrEmpty(path)) { return(false); } else { RepoTool.SetCorrupt(path); if (RepoTool.GetRepoType() == 1) { try { RepoTool.parseArchiveStartEnd(); StartTimetxt.Value = Convert.ToDateTime(RepoTool.GetStart()); if (RepoTool.GetEnd() != "Primary") { EndTimetxt.Value = Convert.ToDateTime(RepoTool.GetEnd()); } } catch (Exception e) { MetroFramework.MetroMessageBox.Show(this, "Invalid File Selected, Please Select Valid Archive File", "Reprocessing Tool"); Queuefiletxt.Clear(); } } } return(okay); }
private void Queuefiletxt_Click(object sender, EventArgs e) { Queuefiletxt.SelectAll(); }