private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     Utilidades.FileControlDicc file = new Utilidades.FileControlDicc("configuration.txt");
     if (!file.Exist)
     {
         file.DiccToFile(new Dictionary <string, string>()
         {
             { "USER ID", "csharp" }
         });
     }
     file.LookDicc(file.FileToDicc());
 }
        private void Btn_Save_Click(object sender, RoutedEventArgs e)
        {
            config.dicc["DATA SOURCE"] = TxtBox_DataSource.Text;
            config.dicc["USER ID"]     = TxtBox_UserID.Text;
            config.dicc["PASSWORD"]    = TxtBox_Password.Text;

            control.DiccToFile(config.dicc);

            BD.Access.CloseConnection();
            BD.Access.Connect(config);

            this.Close();
        }
 void Start()
 {
     //Configuracion BD
     BD.Configuracion           configBD = new BD.Configuracion();
     Utilidades.FileControlDicc file     = new Utilidades.FileControlDicc("configuracion_BD.txt");
     if (file.Exist) //call file
     {
         configBD.dicc = file.FileToDicc();
     }
     else //if file dont exist, create file
     {
         file.DiccToFile(configBD.dicc);
     }
     BD.Access.Connect(configBD);
 }