protected virtual void OnMenuItemClicked() { if (MenuItemClicked != null) { MenuItemClicked.Invoke(); } }
private void Instance_OnMenuItemClicked(object sender, MenuItemClicked gameEvent) { switch (gameEvent.MenuItemName) { case MenuNames.movebtn: IsReadyForSetGoal = true; break; case MenuNames.runefire: RuneForSet = PrefabNames.RuneFire; break; default: break; } }
public void PublichItemClicked(string url) { MenuItemClicked?.Invoke(this, new MenuItemClickedEventArgs(url)); }
protected virtual void OnMenuItemClicked(string name) { MenuItemClicked?.Invoke(this, name); }
public BackMenu(MenuBar Menu, string id, MenuItemClicked clickedEvent) { OnMenuClicked = clickedEvent; this.Menu = Menu; }
public void MenuClicked(object sender, MenuItemClicked mic) { OnMenuItemClicked(sender, mic); }
private void MenuItem_Click(object sender, EventArgs e) => MenuItemClicked?.Invoke(sender, e);
protected virtual void OnMenuItemClicked(MenuItemClickedEventArgs e) { MenuItemClicked?.Invoke(this, e); }
public void Handle(MenuItemClicked message) => ActivateAreaDetails(message.AreaID);
public void Handle(MenuItemClicked message) => ActivateItem(Info);
public void Handle(MenuItemClicked message) => UpdateDetails(message.AreaID);
private void MenuItem_ItemClicked(object sender, EventArgs e) { MenuItemClicked?.Invoke(sender, e); }
public async Task ExecuteMenuItemCommand() { MenuItemClicked?.Invoke(null, SelectedMenuItem); }