Exemplo n.º 1
0
        void linkLabelFrom_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            SingleTableSpecifierPanel panel = (sender as Control).Parent as SingleTableSpecifierPanel;

            if (panel.IncludeCount <= 0)             //no item in the include, put everything!
            {
                panel.SetColumns(oracleHandler.GetAllColumnNames(panel.TableName), null);
            }
            OracleFromForm form = new OracleFromForm(panel.IncludeColumns, panel.ExcludeColumns, string.Concat(" [", panel.SpecifierId, "] ", panel.TableName));

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)     //Do something
            {
                panel.SetColumns(form.IncludedColumns, form.ExcludedColumns);  //record the new included and excluded
                panelControlDisplayHandler(sender as Control);                 //update the display control (if there is any)
            }
        }