public void                 setupByForm(IDataItem aDataItem, IConnection aConnection, IWin32Window aOwner)
 {
     using (var lSetupForm = new ItemSetupForm((Connection)aConnection, (DataItem)aDataItem, false))
     {
         lSetupForm.ShowDialog(aOwner);
     }
 }
 public IDataItem createByForm(IConnection aConnection, IWin32Window aOwner)
 {
     Connection lConnection  = (Connection)aConnection;
         DataItem lItem          = lConnection.addItem(EAccess.READ_WRITE, 0);
         using (var lSetupForm = new ItemSetupForm(lConnection, lItem, true))
         {
             if (lSetupForm.ShowDialog(aOwner) == DialogResult.Cancel)
             {
                 lConnection.removeItem(lItem);
                 lItem = null;
             }
         }
         return lItem;
 }
        public IDataItem            createByForm(IConnection aConnection, IWin32Window aOwner)
        {
            Connection lConnection = (Connection)aConnection;
            DataItem   lItem       = lConnection.addItem(EAccess.READ_WRITE, 0);

            using (var lSetupForm = new ItemSetupForm(lConnection, lItem, true))
            {
                if (lSetupForm.ShowDialog(aOwner) == DialogResult.Cancel)
                {
                    lConnection.removeItem(lItem);
                    lItem = null;
                }
            }
            return(lItem);
        }
 public void setupByForm(IDataItem aDataItem, IConnection aConnection, IWin32Window aOwner)
 {
     using (var lSetupForm = new ItemSetupForm((Connection)aConnection, (DataItem)aDataItem, false))
         {
             lSetupForm.ShowDialog(aOwner);
         }
 }