public DbConnectionViewModel Load(MruConnections history) { DbConnectionViewModel vm = new DbConnectionViewModel(); vm.Load(history); return(vm); }
public MruConnections Save(DbConnectionViewModel vm) { if (vm.MruConnections == null) { return(null); } MruDbConnectionParameterAdapter.SetMruDbConnectionParameter(vm.MruConnections, vm.ConnectionParameter); return(vm.MruConnections); }
/// <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) { }
/// <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) { }