void CurrentDisplayBlock_SizeChanged(object sender, DisplayBlockSizeChangedHandlerArgs args) { CurrentLayoutBlock.SetRect(CurrentDisplayBlock.GetRect()); LayoutBlockBindingSource.EndEdit(); LayoutBlocksDataGridView.EndEdit(); LayoutBlocksDataGridView.Refresh(); }
public void OnSizeChanged(DisplayBlockSizeChangedHandlerArgs args) { var handler = SizeChanged; if (handler != null) { handler(this, args); } }