internal static string BuildConnectionString()
        {
            var cbf = new ConnectionBuilderForm();
            if (cbf.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                return cbf._builder.ConnectionString;
            }

            return null;
        }
        internal static string BuildConnectionString()
        {
            var cbf = new ConnectionBuilderForm();

            if (cbf.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                return(cbf._builder.ConnectionString);
            }

            return(null);
        }
示例#3
0
        private void newConnectionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var conn = ConnectionBuilderForm.BuildConnectionString();

            DataModel.ContextHelper.SetConnection(conn);
        }