Пример #1
0
        void _partition_PropertyChanged(object sender, PartitionEventArgs e)
        {
            if (_owner == null)
                return;

            if (_owner.InvokeRequired)
            {
                EventHandler<PartitionEventArgs> del
                    = new EventHandler<PartitionEventArgs>(_partition_PropertyChanged);
                _owner.Invoke(del, new Object[] { sender, e });
                return;
            }

            _owner.RearrangePartitions();
            Invalidate();
        }
Пример #2
0
 /// <summary>
 /// Событие изменения свойств раздела.
 /// </summary>
 /// <param name="e">Параметры события.</param>
 protected virtual void OnPropertyChanged(PartitionEventArgs e)
 {
     if (PropertyChanged != null)
         PropertyChanged(this, e);
 }
Пример #3
0
 protected virtual void OnPropertyChanged(PartitionEventArgs e)
 {
     new Util.AsyncEventInvoker<PartitionEventArgs>(PropertyChanged)
         .InvokeAsync(this, e);
 }