private void theConvertButton_Click(object sender, EventArgs e) { if (File.Exists(theCodaFilePath) && theTLcodesFilePath != String.Empty) { InitCodaFile(); theSportsCodeFile = new SportsCodeFile(theTLcodesFilePath); theSportsCodeFile.ConvertFile(theCodaFile); } else { // Error. Not all files specified. } }
private bool InitTLcodesFile() { bool retVal = false; theSportsCodeFile = new SportsCodeFile(theTLcodesFilePath); if (theSportsCodeFile.ParseFile()) { theCodesTreeView.Nodes.Clear(); // Add Rows/Codes and Instances Nodes to TreeView theCodesTreeView.Nodes.Add(theSportsCodeFile.BuildTree()); theCodesTreeView.Nodes[0].Expand(); retVal = true; } return retVal; }
private bool InitTLcodesFile() { bool retVal = false; theSportsCodeFile = new SportsCodeFile(theTLcodesFilePath); if (theSportsCodeFile.ParseFile()) { theCodesTreeView.Nodes.Clear(); // Add Rows/Codes and Instances Nodes to TreeView theCodesTreeView.Nodes.Add(theSportsCodeFile.BuildTree()); theCodesTreeView.Nodes[0].Expand(); retVal = true; } return(retVal); }
private void theConvertButton_Click(object sender, EventArgs e) { if (File.Exists(theCodaFilePath) && theTLcodesFilePath != String.Empty) { InitCodaFile(); theSportsCodeFile = new SportsCodeFile(theTLcodesFilePath); theSportsCodeFile.ConvertFile(theCodaFile); } else { // Error. Not all files specified. } }