private void btnOK_Click(object sender, EventArgs e) { if (firstTimeThru) { myJF = new JoinForm(this); foreach (object item in lbTableListing.CheckedItems) { myJF.passedJoinedTabs.Add(item.ToString()); } myJF.JFinitialize(); myJF.Top = PlaceForms.topForm; myJF.Left = PlaceForms.LeftForm; firstTimeThru = false; } else { myJF.passedJoinedTabs.Clear(); foreach (object item in lbTableListing.CheckedItems) { myJF.passedJoinedTabs.Add(item.ToString()); } myJF.JFaddMoreTables(); this.Hide(); myJF.Top = PlaceForms.topForm; myJF.Left = PlaceForms.LeftForm; Application.DoEvents(); myJF.Show(); } }
private void btnOK_Click(object sender, EventArgs e) { this.Hide(); callingJoinForm.Show(); }