protected override void OnViewClick(DataRow selectedRow) { base.OnViewClick(selectedRow); if (Is_public != 2) { return; } string aclb_id = selectedRow.GetDataRowStringValue("aclb_id"); string aclb_base64Ext = selectedRow.GetDataRowStringValue("aclb_base64Ext"); string type_name = selectedRow.GetDataRowStringValue("type_name"); string aclb_title = selectedRow.GetDataRowStringValue("aclb_title"); string title = type_name + "-" + aclb_title; UCWordViews wordViews; if (_dicWordViews.ContainsKey(title)) { wordViews = _dicWordViews[title]; } else { wordViews = new UCWordViews(); wordViews.Title = title; wordViews.FormClosed += (sender, e) => { if (_dicWordViews.ContainsKey(wordViews.Title)) { _dicWordViews.Remove(wordViews.Title); } }; _dicWordViews.Add(title, wordViews); } wordViews.ShowForm(() => { DataTable dt = Tmo_FakeEntityClient.Instance.GetData(TableName, new string[] { "aclb_base64" }, null, "aclb_id", aclb_id); if (TmoShare.DataTableIsEmpty(dt)) { return(null); } else { string base64 = dt.Rows[0][0].ToString(); byte[] fileBytes = StringPlus.DecompressBytes(Convert.FromBase64String(base64)); MemoryStream ms = new MemoryStream(fileBytes); return(ms); } }, aclb_base64Ext); }