コード例 #1
0
 private void CargarTema(int temaId)
 {
     if (temaId == 0)
     {
         _tema = new Tema();
         //Default values.
     }
     else
     {
         _tema = Uow.Temas.Obtener(t => t.Id == temaId);
         this.Nombre = _tema.Nombre;
     }
     
 }
コード例 #2
0
 private void SeleccionarSubTema()
 {
     if (TemaId.HasValue)
     {
         _tema = Uow.Temas.Obtener(p => p.Id == (int)Combo.SelectedValue);
     }
     else
     {
         _tema = null;
     }
     
     if (_tema != null)
         OnSeleccionarSucursalFinished(_tema);
 }
コード例 #3
0
 private void OnSeleccionarSucursalFinished(Tema tema)
 {
     if (SeleccionarFinished != null)
     {
         SeleccionarFinished(this, tema);
     }
 }
コード例 #4
0
 private void CambioTema(object sender, Tema tema)
 {
     if (!_limpiandoFiltros)
         OnFiltered();
 }