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); } }
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); } }