private bool IsSameReportPath() { var jsonReportPath = Help.GetJsonReportPath(Help.JsonPath); if (!string.IsNullOrEmpty(jsonReportPath) && !string.IsNullOrEmpty(reportOutputPath.Text) && jsonReportPath.Equals(reportOutputPath.Text)) { return(true); } return(false); }
private void InitializeSettings() { copyBtn.Enabled = false; csvBtn.Enabled = false; includeHeaderCheck.Checked = true; _projectXmlPath = Help.GetStudioProjectsPath(); _allStudioProjectsDetails = new List <ProjectDetails>(); LoadProjectsList(_projectXmlPath); reportOutputPath.Text = Help.GetJsonReportPath(Help.JsonPath); targetBtn.Enabled = !string.IsNullOrEmpty(reportOutputPath.Text) ? true : false; _optionalInformation = new OptionalInformation { IncludeAdaptiveBaseline = adaptiveMT.Checked, IncludeAdaptiveLearnings = adaptiveLearnings.Checked, IncludeInternalFuzzies = internalFuzzies.Checked, IncludeContextMatch = contextMatch.Checked, IncludeCrossRep = crossRep.Checked, IncludeLocked = locked.Checked, IncludePerfectMatch = perfectMatch.Checked }; }