Exemple #1
0
        public static MonetDbConnectionInfo GetDatabaseInfo(MonetDbConnectionInfo connectionInfo)
        {
            var form = new DatabaseForm(connectionInfo);

            return form.ShowDialog() != DialogResult.OK
                ? null
                : new MonetDbConnectionInfo
                {
                    Host = connectionInfo.Host,
                    Database = form.tbxDb.Text
                };
        }
Exemple #2
0
        public static MonetDbConnectionInfo GetDatabaseInfo(MonetDbConnectionInfo connectionInfo)
        {
            var form = new DatabaseForm(connectionInfo);

            return(form.ShowDialog() != DialogResult.OK
                ? null
                : new MonetDbConnectionInfo
            {
                Host = connectionInfo.Host,
                Database = form.tbxDb.Text
            });
        }