Beispiel #1
0
        private void btok_Click(object sender, EventArgs e)
        {
            m_frame.SaveConnection();
            m_common.SaveConnection();

            try
            {
                DbConnection conn = m_conn.CreateSystemConnection();
                try
                {
                    Async.InvokeFromGui(conn.Open);
                    Async.InvokeFromGui(conn.Close);
                }
                catch (Exception err)
                {
                    throw new ConnectionFailedError("DAE-00162", err);
                }
                DialogResult = DialogResult.OK;
                Close();
            }
            catch (Exception err)
            {
                Errors.Report(err);
                return;
            }

            DialogResult = DialogResult.OK;
            Close();
        }
Beispiel #2
0
 void frame_OnConnectionChanged(object sender, EventArgs e)
 {
     m_frame.SaveConnection();
     connectionstring.Text = m_conn.GenerateConnectionString(false);
 }