public static GestionContratos GetInstance()
 {
     if (instance == null)
     {
         instance = new GestionContratos();
     }
     return(instance);
 }
 public GestionContratos()
 {
     InitializeComponent();
     instance = this;
     cboTipoEvento.ItemsSource = listaContratos.ListarTipoEvento();
     cboTipoEvento.Items.Refresh();
     cboAmbientacion.ItemsSource = listaContratos.ListarTipoAmbientacion();
     cboAmbientacion.Items.Refresh();
     txtNumeroGuardar.Text = DateTime.Now.ToString("yyyyMMddHHmm");
     AuxiliarClases.NotificationCenter.Subscribe("ListadoClientes", actualizarDG);
     AuxiliarClases.NotificationCenter.Subscribe("ListadoContratos", actualizarDG);
     organizarExtras(0);
     recuperar();
     this.altoContraste.IsChecked = Properties.Settings.Default.AltoContraste;
     altoContrasteIsActive();
 }
 private void MetroWindow_Closing(object sender, CancelEventArgs e)
 {
     instance = null;
 }