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