public ConfigurationWindowViewModel(SourceTypeEnum type) { base.DisplayName = Resources.ConfigurationWindowViewModel_DisplayName; _source = new Source(type); _configuration = new DbConnectionHelper(); ListProviders = _configuration.GetListProviders(); _connectionMessenger = new NotificationConnectionMessenger(); CreateCommand = new ActionCommand(Create); }
public ConfigurationWindowViewModel(Source source) { base.DisplayName = Resources.ConfigurationWindowViewModel_DisplayName; _previousSourceData = source; _source = new Source(source.TypeEnum) { Description = source.Description, Name = source.Name, Parameters = source.Parameters }; _configuration = new DbConnectionHelper(); ListProviders = _configuration.GetListProviders(); _connectionMessenger = new NotificationConnectionMessenger(); CreateCommand = new ActionCommand(Update); }
public PatientSearchViewModel(Source source) { base.DisplayName = source.Name; _source = source; _connectionMessenger = new NotificationConnectionMessenger(); }