コード例 #1
0
        public DbConnectionViewModel Load(MruConnections history)
        {
            DbConnectionViewModel vm = new DbConnectionViewModel();

            vm.Load(history);
            return(vm);
        }
コード例 #2
0
 public MruConnections Save(DbConnectionViewModel vm)
 {
     if (vm.MruConnections == null)
     {
         return(null);
     }
     MruDbConnectionParameterAdapter.SetMruDbConnectionParameter(vm.MruConnections, vm.ConnectionParameter);
     return(vm.MruConnections);
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TestConnectionCommand"/> class.
 /// </summary>
 /// <param name="viewModel">The view model this command belongs to.</param>
 public TestConnectionCommand(DbConnectionViewModel viewModel)
 {
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TestConnectionCommand"/> class.
 /// </summary>
 /// <param name="viewModel">The view model this command belongs to.</param>
 public SaveCommand(DbConnectionViewModel viewModel)
 {
 }