public static TreeNode LoadCaffFile(string fileName) { control.MakeCurrent(); //var tmpCaff = new CaffFile(); var tmpCaff = new KameoCaff(); if (tmpCaff.Read(fileName)) { if (tmpCaff.Init()) { return(tmpCaff.TreeViewNode); } } return(null); }
public static TreeNode LoadCaffFile(string fileName, MainForm.UpdateStatusDelegate UpdateDelegate = null) { control.MakeCurrent(); //var tmpCaff = new CaffFile(); var tmpCaff = new KameoCaff(); if (tmpCaff.Read(fileName, UpdateDelegate)) { if (tmpCaff.Init(UpdateDelegate)) { return(tmpCaff.TreeViewNode); } } return(null); }