예제 #1
0
        private void comboStatus()
        {
            C_Status sts = new C_Status();

            sts.id_statusPrincipal      = (int)cmbStatusPrincipal.SelectedValue;
            cmbStatus.ItemsSource       = sts.listarStatus();
            cmbStatus.DisplayMemberPath = "descripcion";
            cmbStatus.SelectedValuePath = "id_status";
        }
예제 #2
0
 private void cmbStatusPrincipal_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (cmbStatusPrincipal.SelectedValue != null)
     {
         C_Status sts = new C_Status();
         sts.id_statusPrincipal      = (int)cmbStatusPrincipal.SelectedValue;
         cmbStatus.ItemsSource       = sts.listarStatus();
         cmbStatus.DisplayMemberPath = "descripcion";
         cmbStatus.SelectedValuePath = "id_status";
     }
 }