private void _editConnectionString(object obj)
        {
            var vm = new ConnectionStringViewmodel(ConnectionString);

            if (vm.ShowDialog() == true)
            {
                ConnectionString = vm.ConnectionString;
            }
        }
        private void _editConnectionStringSecondary(object obj)
        {
            var vm = new ConnectionStringViewmodel(_tasConnectionStringSecondary);

            if (vm.ShowDialog() == true)
            {
                tasConnectionStringSecondary = vm.ConnectionString;
            }
        }
Beispiel #3
0
 private void _editConnectionString(object obj)
 {
     using (var vm = new ConnectionStringViewmodel(ConnectionString))
     {
         vm.Load();
         if (vm.ShowDialog() == true)
         {
             ConnectionString = vm.Model.ConnectionString;
         }
     }
 }