예제 #1
0
 public static OpenDatos Instance()
 {
     if (_instance == null)
     {
         _instance = new OpenDatos();
     }
     return(_instance);
 }
예제 #2
0
 void BtnAbrirClick(object sender, EventArgs e)
 {
     try
     {
         btnAbrir.Enabled = false;
         OpenDatos datos = OpenDatos.Instance();
         datos.CompletedFiles += ArrayToFiles;
         labelcarga.Visible    = true;
         datos.ThreadOpenDir();
     }
     catch (Exception ex)
     {
         Debug.WriteLine("Error al Abrir: " + ex.Message);
         btnAbrir.Enabled = true;
     }
 }