public DetermineTypeForm(string[] colNames, string[] egVals, string _fileName, DataBaseManager _dbMgr)
        {
            InitializeComponent();
            DataTable     dt = new DataTable();
            BindingSource bs = new BindingSource();

            bs.DataSource       = dt;
            MainGrid.DataSource = bs;
            dt.Columns.Add("Column Name", typeof(string));
            dt.Columns.Add("Sample Value in File", typeof(string));
            dt.Columns.Add("Specify your target type here", typeof(string));
            for (int i = 0; i < colNames.Count(); i++)
            {
                dt.Rows.Add(colNames[i], egVals[i], "");
            }
            fileName = _fileName;
            dbMgr    = _dbMgr;
            cols     = colNames;
            MainGrid.Columns[0].ReadOnly = true;
            MainGrid.Columns[1].ReadOnly = true;
        }
Пример #2
0
 public CreateTblForm(DataBaseManager dbMgr)
 {
     InitializeComponent();
     _dbMgr = dbMgr;
 }
Пример #3
0
 public StartNewConnForm(DataBaseManager dbMgr)
 {
     InitializeComponent();
     _dbMgr = dbMgr;
 }