예제 #1
0
        private void DoSimpleCommand(Object obj)
        {
            var        columnPopup = new GridHeaderColumn();
            MainWindow mainWindow  = new MainWindow();

            if (mainWindow.queryBuilder == null)
            {
                mainWindow.queryBuilder = MainWindow.LatestQueryBuilder;
            }
            string dbColumn = obj.ToString();

            dbColumn         = dbColumn.Trim();
            dbColumn         = dbColumn.Replace(" ", "_");
            connectionString = ConfigurationManager.AppSettings["DefaultDBConn"];
            DataTable dataTable = new DataTable();
            DataSet   columnds  = new DataSet();

            SQLBuilder.Clauses.Column column = new SQLBuilder.Clauses.Column();
            column.Name      = dbColumn;
            column.Format    = "";
            column.AliasName = "";
            dataTable        = MySQLData.DataAccess.ADODataBridge.getColumnStats(connectionString, mainWindow.queryBuilder, column);
            columnPopup.ColumnDataGrid.DataContext = dataTable;
            columnPopup.Show();
        }
예제 #2
0
 private void DoSimpleCommand(Object obj)
 {
     var columnPopup = new GridHeaderColumn();
     MainWindow mainWindow = new MainWindow();
     if (mainWindow.queryBuilder == null)
     {
         mainWindow.queryBuilder = MainWindow.LatestQueryBuilder;
     }
     string dbColumn = obj.ToString();
     dbColumn = dbColumn.Trim();
     dbColumn = dbColumn.Replace(" ", "_");
     connectionString = ConfigurationManager.AppSettings["DefaultDBConn"];
     DataTable dataTable = new DataTable();
     DataSet columnds = new DataSet();
     SQLBuilder.Clauses.Column column = new SQLBuilder.Clauses.Column();
     column.Name = dbColumn;
     column.Format = "";
     column.AliasName = "";
     dataTable = MySQLData.DataAccess.ADODataBridge.getColumnStats(connectionString, mainWindow.queryBuilder, column);
     columnPopup.ColumnDataGrid.DataContext = dataTable;
     columnPopup.Show();
 }