Esempio n. 1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            TabThatNeedsCols = lbJoined.CheckedItems[0];
            queryTabInfo  myTabInfo      = getQTinfoFor(TabThatNeedsCols.ToString());
            List <string> alreadyChecked = myTabInfo.showColumns;

            myCC = GetTheColumns(alreadyChecked);
            Application.DoEvents();
            myCC.ShowDialog();

            if (GetReturnedColumns().Count == 0)
            {
                // what happens if they deselect all the columns?
            }

            myTabInfo.showColumns = GetReturnedColumns();
            queryParms[qpIndex]   = myTabInfo;
            myCC.Close();
        }
Esempio n. 2
0
        public void JFinitialize()
        {
            frmTabDispParent.Hide();
            this.Top  = frmTabDispParent.PlaceForms.topForm;
            this.Left = frmTabDispParent.PlaceForms.LeftForm;

            Application.DoEvents();

            bool firstObj = true;

            foreach (object OneTab in passedJoinedTabs)
            {
                if (firstObj)
                {
                    lbJoined.Items.Add(OneTab);
                    TabThatNeedsCols = OneTab;
                    firstObj         = false;
                }
                else
                {
                    lbUnjoined.Items.Add(OneTab);
                }
            }

            myCC = GetTheColumns();

            Application.DoEvents();
            myCC.ShowDialog();

            if (GetReturnedColumns().Count == 0)
            {
                // what happens if they didn't select any columns the first time?
            }

            var myqTinfo = new queryTabInfo();

            myqTinfo.TableName   = TabThatNeedsCols.ToString();
            myqTinfo.showColumns = GetReturnedColumns();

            queryParms.Add(myqTinfo);
            myCC.Close();
        }
Esempio n. 3
0
        private bool GetColsToShowRight(ColumnChooser myCC)
        {
            this.Hide();
            Application.DoEvents();
            myCC.ShowDialog();

            if (GetReturnedColumns().Count == 0)
            {
                UndoTheJoin();
                myCC.Close();
                return(false);
            }

            var myqTinfo = new queryTabInfo();

            myqTinfo.TableName   = TabThatNeedsCols.ToString();
            myqTinfo.showColumns = GetReturnedColumns();

            myCC.Close();
            return(true);
        }