Example #1
0
        private static void Active_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            UltimaPacketFilter filter = d as UltimaPacketFilter;

            if (filter != null)
            {
                filter.OnChange();
            }
        }
Example #2
0
        private void UpdateIsChecked()
        {
            if (_Parent != null && !_Parent.IsBusy)
            {
                _Parent.AreAllChecked();

                if (_Owner != null)
                {
                    _Owner.OnChange();
                }
            }
        }
Example #3
0
        private static void ShowAll_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            UltimaPacketFilter filter = d as UltimaPacketFilter;

            if (filter != null && !filter._IsBusy)
            {
                if (filter.ShowAll)
                {
                    filter.Table.ShowAll();
                }
                else
                {
                    filter.Table.HideUnknown();
                }

                filter.OnChange();
            }
        }
        private void UpdateIsChecked()
        {
            _IsBusy = true;

            foreach (IUltimaPacketFilterEntry o in _Children)
            {
                if (o.IsVisible)
                {
                    o.IsChecked = IsChecked;
                }
            }

            if (_Parent != null && !_Parent.IsBusy)
            {
                _Parent.AreAllChecked();
            }

            if (_Owner != null)
            {
                _Owner.OnChange();
            }

            _IsBusy = false;
        }