Exemplo n.º 1
0
 private void InitInfoDetailsTab()
 {
     try {
         cmbVolDetails.DataSource    = BLVols.GetTousVols();
         cmbVolDetails.ValueMember   = "IdVol";
         cmbVolDetails.DisplayMember = "Code";
     }
     catch (CustomError cEx) {
         MessageBox.Show(cEx.Message);
     }
     catch (Exception ex) {
         throw new CustomError(666);
     }
 }
Exemplo n.º 2
0
        private void InitInfoOverviewTab()
        {
            DataSet dataSet = new DataSet();

            try {
                dataSet = BLVols.GetInfos();
                dataGridViewVols.DataSource         = dataSet.Tables[0].DefaultView;
                dataGridViewVols.Columns[0].Visible = false;
                cmbTranchePrix.DataSource           = BLVols.GetTousVols();
                cmbTranchePrix.ValueMember          = "IdVol";
                cmbTranchePrix.DisplayMember        = "Code";
            }
            catch (CustomError cEx) {
                MessageBox.Show(cEx.Message);
            }
            catch (Exception ex) {
                throw new CustomError(666);
            }
        }