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