public void TBJoiner_DragDrop(object sender, DragEventArgs e) { string str = e.Data.GetData(DataFormats.Text).ToString(); // var miSelectNode = in2SqlWF03PanelRigtSqlM.getNode(e.X, e.Y); //MessageBox.Show(str); TreeNode vtb = in2SqlWF03PanelRigtSqlM.CurrSqlPanel.findeTable(str, getLblConnectionName()); if ((vtb == null) == false) { if (vtb.Nodes.Count < 2) { MessageBox.Show("Please expand table columns by clicking on the table name "); return; } vTableList.Add(vtb); if (vTableList.Count == 1) { vMainTable = vtb; } TBJoiner.Clear(); drawSelect(); } //throw new NotImplementedException(); }
private void newToolStripButton1_Click(object sender, EventArgs e) { vTableList.Clear(); vMainTable = null; TBJoiner.Clear(); }