Exemplo n.º 1
0
        private void setControles()
        {
            ce = new Controlador(this);
            CancelEventHandler c = new CancelEventHandler(ce.cerrarVentanaEditor);

            Closing       += c;
            abrir.Click   += new RoutedEventHandler(ce.abrir);
            guardar.Click += new RoutedEventHandler(ce.guardar);
        }
        private void setControles()
        {
            c = new Controlador(this);

            nuevo.Click += new RoutedEventHandler(c.nuevo);
            Loaded      += new RoutedEventHandler(c.cargandoVentana);
            CancelEventHandler ce = new CancelEventHandler(c.cerrarVentanaWindow);

            Closing += ce;
        }