Пример #1
0
        private void frmPegs_Load(object sender, EventArgs e)
        {
            CommonDGV.Set_DBGridColumns(this.v_PegDataGridView);

            lsMineVal = new List <string>(); lsMineID = new List <int>();
            lsTravVal = new List <string>(); lsTravID = new List <int>();

            dmMain.load_LookUpVal("Mine", "MineID", "Descr", lsMineID, lsMineVal, false);
            cboMine.DataSource = lsMineVal;
            if (cboMine.Items.Count > 0)
            {
                loadTrav(lsMineID[0]);
            }
            else
            {
                MessageBox.Show("No Mines Found", "Load Mines", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Пример #2
0
        private void frmBases_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'travdataDataSet.v_Base' table. You can move, or remove it, as needed.
            //this.v_BaseTableAdapter.Fill(this.travdataDataSet.v_Base);
            // TODO: This line of code loads data into the 'travdataDataSet.bc' table. You can move, or remove it, as needed.


            CommonDGV.Set_DBGridColumns(this.v_BaseDataGridView);

            lsMineVal = new List <string>(); lsMineID = new List <int>();
            lsTravVal = new List <string>(); lsTravID = new List <int>();

            dmMain.load_LookUpVal("Mine", "MineID", "Descr", lsMineID, lsMineVal, false);
            cboMine.DataSource = lsMineVal;
            if (cboMine.Items.Count > 0)
            {
                loadTrav(lsMineID[0]);
            }
            else
            {
                MessageBox.Show("No Mines Found", "Load Mines", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Пример #3
0
 private void frmClass_Load(object sender, EventArgs e)
 {
     CommonDGV.Set_DBGridColumns(this.dataGridView1);
 }