public IConnection createFromXML(XmlTextReader aXMLTextReader)
        {
            var lConnection     = new Connection();
                var lReader         = new XMLAttributeReader(aXMLTextReader);

                lConnection.mTypeChangeProhibited = lReader.getAttribute<Boolean>("TypeChangeProhibited", lConnection.mTypeChangeProhibited);

                return lConnection;
        }
 public IConnection createByForm(IWin32Window aOwner)
 {
     Connection lConnection = new Connection();
         using (var lSetupForm = new ConnectionSetupForm(lConnection, true))
         {
             if (lSetupForm.ShowDialog(aOwner) == DialogResult.Cancel)
             {
                 lConnection = null;
             }
         }
         return lConnection;
 }
        public ItemSetupForm(Connection aConnectioInternaln, DataItem aItemInternal, bool aNew)
        {
            mConnectionInternal = aConnectioInternaln;
            mItemInternal       = aItemInternal;
            InitializeComponent();

            if (aNew == false)
            {
                okCancelButton.setOkOnlyStyle();
            }

            mItemInternal.ValueChanged          += new EventHandler(onChange);
            mItemInternal.PropertiesChanged     += new EventHandler(onChange);
            mConnectionInternal.ConnectionState += new EventHandler(onChange);
            updateForm();
        }