예제 #1
0
        /// <summary>
        /// Create a new instance.
        /// </summary>
        /// <param name="connectionStringService">IConnectionString</param>
        public Connection(IConnectionString connectionStringService)
        {
            this.connectionStringService = connectionStringService;

            InitializeComponent();

            csDict = connectionStringService.GetConnectionStrings();
            foreach (var kvp in csDict)
            {
                lstConnection.Items.Add(new CsListItem(kvp.Key, kvp.Value));
            }
            btnNext.Enabled = false;
        }
예제 #2
0
 public IEnumerable <ConnectionString> Get()
 {
     return(connectionStringRepository.GetConnectionStrings());
 }