public void         setupByForm(IConnection aConnection, IWin32Window aOwner)
 {
     using (var lSetupForm = new ConnectionSetupForm((Connection)aConnection, false))
     {
         lSetupForm.ShowDialog(aOwner);
     }
 }
 public IConnection createByForm(IWin32Window aOwner)
 {
     Connection lConnection = new Connection();
         using (var lSetupForm = new ConnectionSetupForm(lConnection, true))
         {
             if (lSetupForm.ShowDialog(aOwner) == DialogResult.Cancel)
             {
                 if (lConnection.Connected)
                 {
                     lConnection.disconnect();
                 }
                 lConnection.Dispose();
                 lConnection = null;
             }
         }
         return lConnection;
 }
        public IConnection  createByForm(IWin32Window aOwner)
        {
            Connection lConnection = new Connection();

            using (var lSetupForm = new ConnectionSetupForm(lConnection, true))
            {
                if (lSetupForm.ShowDialog(aOwner) == DialogResult.Cancel)
                {
                    if (lConnection.Connected)
                    {
                        lConnection.disconnect();
                    }
                    lConnection.Dispose();
                    lConnection = null;
                }
            }
            return(lConnection);
        }
 public void setupByForm(IConnection aConnection, IWin32Window aOwner)
 {
     using (var lSetupForm = new ConnectionSetupForm((Connection)aConnection, false))
         {
             lSetupForm.ShowDialog(aOwner);
         }
 }