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(); }
/// <summary> /// Событие изменения свойств раздела. /// </summary> /// <param name="e">Параметры события.</param> protected virtual void OnPropertyChanged(PartitionEventArgs e) { if (PropertyChanged != null) PropertyChanged(this, e); }
protected virtual void OnPropertyChanged(PartitionEventArgs e) { new Util.AsyncEventInvoker<PartitionEventArgs>(PropertyChanged) .InvokeAsync(this, e); }