示例#1
0
        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);
        }
示例#2
0
        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);
        }