//-----------------------------------// // C o n s t r u c t o r // //-----------------------------------// public ControladorFicheroMaestroWf(IFicheroMaestro <TElemento> list, string nmbElm, IControladorMV ctrlMV, IVistaFicheroMaestro vist) : base(list, nmbElm, ctrlMV, vist) { (this.vista as VistaFicheroMaestroWf).ManejadorBarraHerramientas = ComandoSeleccionado; }
// *** C O N S T R U C T O R *** // public ControladorFicheroMaestro(IFicheroMaestro <TInstancia> fichero, string nombIns, IControladorMV ctrlMV, IVistaFicheroMaestro vist) { inicializar(fichero, nombIns, ctrlMV, vist); }
// *** M E T O D O S P R I V A D O S *** // void inicializar(IFicheroMaestro <TInstancia> fichero, string nombIns, IControladorMV ctrlMV, IVistaFicheroMaestro vist) { establecerParametros(fichero, nombIns, ctrlMV, vist); this.controladorMV.DesactivarEdicion(); establecerEstadoInicial(); asociarComandos(); this.vista.CancelarEdicion(this.estadoEdicionInstancia == EstadosEdicionInstancias.Nulo); this.vista.ReflejarEstadoEdicion(); }
void establecerParametros(IFicheroMaestro <TInstancia> fichero, string nombIns, IControladorMV ctrlMV, IVistaFicheroMaestro vist) { this.fichero = fichero; this.navegador = null; this.nombreInstancia = nombIns; this.memento = null; this.controladorMV = ctrlMV; this.controladorMV.CambioEstadoModelo += new CambioEstadoModeloManejador(ModeloCambioEstado); this.vista = vist; this.vista.EstablecerControlFichero(this); }
public ComandoIr(OperacionControladorIr oprc, int posicion, IVistaFicheroMaestro vist) { this.operacion = oprc; this.vista = vist; this.posicionElemento = posicion; }
public ComandoControlador(OperacionControlador oprc, IVistaFicheroMaestro vist) { this.operacion = oprc; this.vista = vist; }