コード例 #1
0
 private void cbYear_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Index == 1)
     {
         FormSerie fmSerie = new FormSerie();
         fmSerie.ShowDialog();
         cbYear.Properties.DataSource    = new BindingList <CSerie>(new CSerieFactory().GetAll().Where(c => c.Status_serie == true).ToList());
         cbYear.Properties.ValueMember   = "Cod_serie";
         cbYear.Properties.DisplayMember = "Nom_serie";
         cbYear.ItemIndex = 0;
     }
 }
コード例 #2
0
 private void cbYear_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Index == 1)
     {
         FormSerie fmSerie = new FormSerie();
         fmSerie.ShowDialog();
         cbYear.Properties.DataSource = new BindingList<CSerie>(new CSerieFactory().GetAll().Where(c => c.Status_serie == true).ToList());
         cbYear.Properties.ValueMember = "Cod_serie";
         cbYear.Properties.DisplayMember = "Nom_serie";
         cbYear.ItemIndex = 0;
     }
 }