public DataItem addItem(EAccess aItemAccess, object aValue)
        {
            DataItem lItem      = new DataItem();
                lItem.mConnection   = this;
                lItem.mAccess       = aItemAccess;
                lItem.mValue        = aValue;
                ConnectionState     += new EventHandler(lItem.onConnectionStateChanged);

                mNumberOfItems      = mNumberOfItems + 1;

                return lItem;
        }
        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();
        }
 public void removeItem(DataItem aItem)
 {
     ConnectionState     -= aItem.onConnectionStateChanged;
         aItem.mConnection   = null;
         mNumberOfItems      = mNumberOfItems - 1;
 }
Beispiel #4
0
 public void                                     removeItem(DataItem aItem)
 {
     ConnectionState  -= aItem.onConnectionStateChanged;
     aItem.mConnection = null;
     mNumberOfItems    = mNumberOfItems - 1;
 }