// ***************************** ***************************** ***************************** // Constructor y carga de elementos. public AddDeterminanteAsuntoViewModel(AsuntoAddViewModel asuntoAddViewModel) { this._AsuntoAddViewModel = asuntoAddViewModel; this._DeterminanteRepository = new GestorDocument.DAL.Repository.DeterminanteRepository(); this.Determinantes = new ObservableCollection<DeterminanteModel>(); this.LoadInfoGrid(); }
// ***************************** ***************************** ***************************** // Constructor y carga de elementos. public AddOrganigramaAsuntoViewModel(AsuntoAddViewModel asuntoAddViewModel) { this._AsuntoAddViewModel = asuntoAddViewModel; this._SelectedOrganigrama = asuntoAddViewModel._ParentAsunto._PantallaInicioViewModel._MainWindowViewModel.Usuario.Rol.Organigrama; this.AddItem = new List<OrganigramaModel>(); this._TreeView = new TreeViewViewModel(); this.Organigramas = new ObservableCollection<OrganigramaModel>(); this._OrganigramaRepository = new GestorDocument.DAL.Repository.OrganigramaRepository(); this.LoadInfoGrid(); }
public void GetAddDeterminante(AsuntoAddViewModel viewModel) { try { this.DataContext = new AddDeterminanteAsuntoViewModel(viewModel); } catch (Exception) { ; } }
public void GetAddDestinatario(AsuntoAddViewModel viewModel) { try { this.DataContext = new AddOrganigramaAsuntoViewModel(viewModel); } catch (Exception) { ; } }
public void GetAddDocumento(AsuntoAddViewModel viewModel) { try { Confirmation confirmacion = new Confirmation(); this.DataContext = new AddDocumentoAsuntoViewModel(viewModel, confirmacion); } catch (Exception) { ; } }