private void OnGridTypeChanged() { if (GridTypeChanged != null) { GridTypeChanged.Invoke(this, EventArgs.Empty); } }
protected virtual void OnGridTypeChanged() { switch (GridType) { case MirGridType.Equipment: case MirGridType.Inventory: Library = Libraries.Items; break; default: Library = null; break; } if (GridTypeChanged != null) { GridTypeChanged.Invoke(this, EventArgs.Empty); } }