Esempio n. 1
0
        private void FrmIndicNbrCasTraite_Load(object sender, EventArgs e)
        {
            PModel pModel = new PModel();

            // load model id combo
            cboModel.DisplayMember = "model";
            cboModel.ValueMember   = "modelid";
            cboModel.DataSource    = pModel.getListForComboBox().Tables[0];

            // load year combo
            loadComboYear();

            // update after the combo selection
            updateComboSelection();

            // load ComboProcess
            LoadComboProcess();
        }
        private void FrmChargeEquipe_Load(object sender, EventArgs e)
        {
            PModel pModel = new PModel();

            // load model ref combo
            cboModel.DisplayMember = "model";
            cboModel.ValueMember   = "modelid";
            cboModel.DataSource    = pModel.getListForComboBox().Tables[0];

            // load year combo
            loadComboYear();

            // update after the combo selection
            updateComboSelection();

            // load ComboTeam
            LoadComboTeam();
        }