private void tsmOpen_Click(object sender, EventArgs e) { TDataInfoDTO dto = (LvDataContent.SelectedItems[0] as ListViewItemEx).ItemData; if (dto.IsForlder) { IniliazeListView(dto.MetaDataId); } else { //打开 FormView view = new FormView(); view.Show(); view.View(dto.MetaDataId); } }
private void LvDataContent_MouseDoubleClick(object sender, MouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Left) { if (LvDataContent.SelectedItems.Count == 1) { TDataInfoDTO dto = (LvDataContent.SelectedItems[0] as ListViewItemEx).ItemData; if (dto.IsForlder) { IniliazeListView(dto.MetaDataId); } else { //打开 FormView view = new FormView(); view.Show(); view.View(dto.MetaDataId); } } } }