private void OnRecreateMenuItems(object sender, RecreateMenuItemsEventArgs e) { if (e.Views == null) { ClearTargets(); } else { AddMenuItems(e.Views); } }
protected virtual void OnRecreateMenuItems(RecreateMenuItemsEventArgs e) { RecreateMenuItems?.Invoke(this, e); }