Exemplo n.º 1
0
        private void menOperacion_Click(object sender, RoutedEventArgs e)
        {
            this.Cursor = Cursors.Wait;
            frmOperacion objOperacionWindow = new frmOperacion();

            objOperacionWindow.Owner = this;
            objOperacionWindow.ShowDialog();
            this.Cursor = Cursors.Arrow;

            if (objOperacionWindow.Resultado == true)
            {
                menFamilia.IsEnabled = true;
                menBusFam.IsEnabled  = true;
                menNueFam.IsEnabled  = true;
                menDatos.IsEnabled   = true;
                menBusMad.IsEnabled  = true;
                menBusMen.IsEnabled  = true;
                menBusTut.IsEnabled  = true;
                menBusAva.IsEnabled  = true;
                menReporte.IsEnabled = true;
                menRep01.IsEnabled   = true;
                menRep02.IsEnabled   = true;
            }

            objOperacionWindow = null;
        }
Exemplo n.º 2
0
        private void menOperacion_Click(object sender, RoutedEventArgs e)
        {
            this.Cursor = Cursors.Wait;
            frmOperacion objOperacionWindow = new frmOperacion();
            objOperacionWindow.Owner = this;
            objOperacionWindow.ShowDialog();
            this.Cursor = Cursors.Arrow;

            if (objOperacionWindow.Resultado == true)
            {
                menFamilia.IsEnabled = true;
                menBusFam.IsEnabled = true;
                menNueFam.IsEnabled = true;
                menDatos.IsEnabled = true;
                menBusMad.IsEnabled = true;
                menBusMen.IsEnabled = true;
                menBusTut.IsEnabled = true;
                menBusAva.IsEnabled = true;
                menReporte.IsEnabled = true;
                menRep01.IsEnabled = true;
                menRep02.IsEnabled = true;
            }

            objOperacionWindow = null;
        }