public void GetCatalogo(MenuModel view) { switch (view.MenuName) { case "ASUNTO": //CatAsuntoView _CatAsuntoView = new CatAsuntoView(); //this.GetContentPane().Content = _CatAsuntoView; break; case "DETERMINANTE": CatDeterminanteView _CatDeterminanteView = new CatDeterminanteView(); this.GetContentPane().Content = _CatDeterminanteView; break; case "DOCUMENTOS": CatDocumentosView _CatDocumentosView = new CatDocumentosView(); this.GetContentPane().Content = _CatDocumentosView; break; case "EXPEDIENTE": CatExpedienteView _CatExpedienteView = new CatExpedienteView(); this.GetContentPane().Content = _CatExpedienteView; break; case "FECHA VENCIMIENTO": CatFechaVencimientoView _CatFechaVencimientoView = new CatFechaVencimientoView(); this.GetContentPane().Content = _CatFechaVencimientoView; break; case "INSTRUCCION": CatInstruccionView _CatInstruccionView = new CatInstruccionView(); this.GetContentPane().Content = _CatInstruccionView; break; case "PRIORIDAD": CatPrioridadView _CatPrioridadView = new CatPrioridadView(); this.GetContentPane().Content = _CatPrioridadView; break; case "SIGNATARIO": CatSignatarioView _CatSignatarioView = new CatSignatarioView(); this.GetContentPane().Content = _CatSignatarioView; break; case "STATUS ASUNTO": CatStatusAsuntoView _CatStatusAsuntoView = new CatStatusAsuntoView(); this.GetContentPane().Content = _CatStatusAsuntoView; break; case "STATUS TURNO": CatStatusTurnoView _CatStatusTurnoView = new CatStatusTurnoView(); this.GetContentPane().Content = _CatStatusTurnoView; break; case "TIPO DETERMINANTE": CatTipoDeterminanteView _CatTipoDeterminanteView = new CatTipoDeterminanteView(); this.GetContentPane().Content = _CatTipoDeterminanteView; break; case "TIPO DOCUMENTO": CatTipoDocumentoView _CatTipoDocumentoView = new CatTipoDocumentoView(); this.GetContentPane().Content = _CatTipoDocumentoView; break; case "TURNO": CatTurnoView _CatTurnoView = new CatTurnoView(); this.GetContentPane().Content = _CatTurnoView; break; case "UBICACION": CatUbicacionView _CatUbicacionView = new CatUbicacionView(); this.GetContentPane().Content = _CatUbicacionView; break; default: break; } }
public void GetMenu(MenuModel model) { MainWindowViewModel viewModel = null; Asunto.AsuntoView viewAsunto = null; switch (model.MenuName) { case "Turnos": PantallaInicioView _PantallaInicioView = new PantallaInicioView(); this.GetContentPane().Content = _PantallaInicioView; break; case "Nuevo Asunto": viewModel = this.GetViewModel(); viewAsunto = new Asunto.AsuntoView(); this.GetContentPane().Content = viewAsunto; viewAsunto.GetAsunto(viewModel.PantallaInicio, 4); viewAsunto.Nuevo(); break; case "Borrador": this.GetValidedBorrador(); break; case "Reportes": Reportes.PantallaReportes reportes = new Reportes.PantallaReportes(); this.GetContentPane().Content = reportes; break; case "Tablero": DashBoard.Tablero2View _TableroView = new DashBoard.Tablero2View(); this.GetContentPane().Content = _TableroView; break; default: break; } }