private void B_Transporte_Click(object sender, RoutedEventArgs e)
 {
     if (F_Transporte_Inicio != null && F_Transporte_Inicio.ShowActivated)
     {
         F_Transporte_Inicio.Activate();
         return;
     }
     F_Transporte_Inicio = new Frames.Transporte.Inicio();
     F_Transporte_Inicio.Show();
     F_Transporte_Inicio.Closed += new EventHandler(CargarTransporte);
 }
        private void CargarTransporte(object sender, EventArgs e)
        {
            if (!F_Transporte_Inicio.Estado)
            {
                F_Transporte_Inicio = null;
                return;
            }

            if (F_Transporte_MatrizTransporte == null)
            {
                F_Transporte_MatrizTransporte = new Frames.Transporte.MatrizTransporte(F_Transporte_Inicio.Ofertantes, F_Transporte_Inicio.Demandantes);
                F_Vista.Content     = F_Transporte_MatrizTransporte;
                F_Transporte_Inicio = null;
                return;
            }

            if (F_Transporte_Inicio.Estado)
            {
                MessageBoxResult result = MessageBox.Show("Ya existe una matriz de costos creada, ¿Desea recuperarla?",
                                                          "Esperando confirmación",
                                                          MessageBoxButton.YesNoCancel,
                                                          MessageBoxImage.Information,
                                                          MessageBoxResult.Yes);
                if (result == MessageBoxResult.Yes)
                {
                    F_Vista.Content     = F_Transporte_MatrizTransporte;
                    F_Transporte_Inicio = null;
                    return;
                }
                else if (result == MessageBoxResult.No)
                {
                    F_Transporte_MatrizTransporte = new Frames.Transporte.MatrizTransporte(F_Transporte_Inicio.Ofertantes, F_Transporte_Inicio.Demandantes);
                    F_Vista.Content     = F_Transporte_MatrizTransporte;
                    F_Transporte_Inicio = null;
                    return;
                }
                else
                {
                    F_Transporte_Inicio = null;
                    return;
                }
            }
        }