public void LoadMusicScore(BinaryReader b) { IScoreImportProvider import = new ImportGuitarPro(); score = import.LoadScore(b); SelectDefaultPart(); }
public void LoadMusicScore(string filename) { if (filename.EndsWith(".xml")) { //music xml score = new ImportMusicXML().LoadMusicXML(filename); } if (filename.EndsWith(".gp4")) { //guitar pro IScoreImportProvider import = new ImportGuitarPro(); score = import.LoadScore(filename); } SelectDefaultPart(); }