Esempio n. 1
0
        ///<summary>
        ///</summary>
        new public void Add(T ivg)
        {
            base.Add(ivg);

            CustomListEventArgs args = new CustomListEventArgs();

            args.Action     = CustomListActions.Add;
            args.Object     = ivg;
            args.CustomList = this;

            OnCollectionChanged(args);
        }
Esempio n. 2
0
        private void OnCollectionChanged(CustomListEventArgs args)
        {
            EventArgs arguments = EventArgs.Empty;

            if (args != null)
            {
                arguments = args;
            }

            if (CollectionChanged != null)
            {
                CollectionChanged(this, arguments);
            }
        }
Esempio n. 3
0
        void _input_output_CollectionChanged(object sender, EventArgs e)
        {
            CustomListEventArgs args = e as CustomListEventArgs;

            if (args != null && args.Action == CustomListActions.Add)
            {
                StorageItem si = (StorageItem)args.Object;

                if (args.CustomList == _output)
                {
                    si.StorageItemType = StorageItemType.Output;
                }
                else
                {
                    si.StorageItemType = StorageItemType.Input;
                }
            }
        }