private void btnUpdate_Click(object sender, RibbonControlEventArgs e) { Outlook.Folder box = (Outlook.Folder)addin.Application.Session.GetFolderFromID(AppConfig.ReadConfig("OutlookFolderID")); SaveAttachment.SaveAttachments(AppConfig.ReadConfig("XLSXPath"), box); //更新数据库 tool = new ExcelAndSQLite(); tool.Excel2SQLite(); }
private void btnSearch_Click(object sender, EventArgs e) { tool = new ExcelAndSQLite(); String path = tool.Search(this.tbKeyWord.Text); if (path != null) { ShowResultInExcel(path); } }