private void button_test_Click(object sender, RoutedEventArgs e)
        {
            DataManagement_SourceLine line = new DataManagement_SourceLine();

            line.Owner = this;
            if (line.ShowDialog() == true)
            {
                if (line.IsCanConnectioned == false)
                {
                    return;
                }
                this.ora = line.ora;
                bindListBox();
            }
        }
Example #2
0
        public SelectColumnCondition(string tablename, OracleHelper_Test ora)
        {
            InitializeComponent();
            this.tableName = tablename;
            string sql = string.Format("select column_name from user_tab_cols where table_name='{0}'", tablename);

            DataTable dtable = ora.ExecuteTable(sql);

            foreach (DataRow dr in dtable.Rows)
            {
                ListBoxItem item = new ListBoxItem();
                item.Content = dr["COLUMN_NAME"];
                item.Tag     = dr["COLUMN_NAME"];
                ListBox1.Items.Add(item);
            }
        }