private void StoreDataTable(Object sender, ExportEvents.exportControlEventArgs e) { string assemblyName = ""; if (lstVwAssemblies.SelectedItems.Count == 0) { if (projectView.SelectedNode == null) { MessageBox.Show("No Assembly Selected."); return; } else if (projectView.SelectedNode == null || !projectView.SelectedNode.Parent.Text.Trim().Equals("Mapped Objects")) { MessageBox.Show("Select a Mapped Object."); return; } else if (projectView.SelectedNode != null) { assemblyName = projectView.SelectedNode.ToolTipText; } } else { assemblyName = lstVwAssemblies.SelectedItems[0].SubItems[2].Text; } if (!Mapped.LoadDataTableToMapNode(projectView, assemblyName, (ReturnData)e.getData, currentMode)) { dgTableView.DataSource = Mapped.GetQueryColumnDef((ReturnData)e.getData); dgTableView.Tag = e; } }