示例#1
0
 private void SetTxtItems(Movie m, bool edit)
 {
     if (edit)
     {
         cmbClassMovie.SelectedValue = m.Classofmovie;
         txtDuracion.Text            = m.Duration;
         txtTitulo.Text            = m.Title;
         cmbCategory.SelectedValue = wc.GetEntity(m.CategoryId).Name;
         ImageMovie.Source         = LoadImage(m.Image);
     }
     if (m.Image == null)
     {
         ImageMovie.Source = new BitmapImage(new Uri(SourceUri));
     }
 }