public WizFolderCtrl() { wizdb = new WizKMCoreLib.WizDatabase(); //WizDocument wizdoc = new WizDocument(); wizdb.Open(""); folders =wizdb.Folders; wizdb.Close(); }
static void Main(string[] args) { WizDatabase _wizdb=new WizDatabase(); _wizdb.Open(""); Action<WizFolder> ac = Program.Counter; // dynamic forEach = Parallel.ForEach(_wizdb.Folders, ac(dynamic file)); Console.ReadKey(); }
/* * 初始化wiz */ public void initWiz() { WizDatabase db = new WizDatabase(); try { db.Open(""); axWizCategoryTree.Database = db; axWizCategoryTree.Border = true; } catch (Exception ex) { AddLog("打开Wiz数据失败:"); } }