Example #1
0
        /// <summary>
        /// Contructor que llama al constructor por defecto y luego
        /// asocia el controlador para el arbol de la ventana.
        /// </summary>
        public WinBandejaEntrada(IControladorTree controlTree)
        {
            if (controlTree == null)
                throw new VistaErrorException("VISTA-NOREADY");

            try {
                _controladorTree = controlTree;
                InitializeComponent();
                Icon = controlTree.getIcono();
            } catch (Exception e) {
                Sistema.Controlador.mostrar("TREE-NOK", ENivelMensaje.ERROR, e.ToString(), false);
                throw new VistaErrorException("TREE-NOK", e.ToString());
            }
        }
Example #2
0
        /// <summary>
        /// Contructor que llama al constructor por defecto y luego
        /// asocia el controlador para el arbol de la ventana.
        /// </summary>
        public WinTreeConfig(IControladorTree controlador)
        {
            if (controlador == null)
                throw new VistaErrorException("VISTA-NOREADY");

            try {
                InitializeComponent();

                _controladorTree = controlador;
                Icon = _controladorTree.getIcono();
                Text = _controladorTree.getTitulo();

                _controladores = new Dictionary<TreeNode, IControladorListTree>();
            } catch (Exception e) {
                Sistema.Controlador.mostrar("TREE-NOK", ENivelMensaje.ERROR, e.ToString(), false);
                throw new VistaErrorException("TREE-NOK", e.ToString());
            }
        }