Пример #1
0
 protected virtual void OnMenuItemClicked()
 {
     if (MenuItemClicked != null)
     {
         MenuItemClicked.Invoke();
     }
 }
Пример #2
0
    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;
        }
    }
Пример #3
0
 public void PublichItemClicked(string url)
 {
     MenuItemClicked?.Invoke(this, new MenuItemClickedEventArgs(url));
 }
Пример #4
0
 protected virtual void OnMenuItemClicked(string name)
 {
     MenuItemClicked?.Invoke(this, name);
 }
Пример #5
0
 public BackMenu(MenuBar Menu, string id,  MenuItemClicked clickedEvent)
 {
     OnMenuClicked = clickedEvent;
     this.Menu = Menu;
 }
Пример #6
0
 public void MenuClicked(object sender, MenuItemClicked mic)
 {
     OnMenuItemClicked(sender, mic);
 }
 private void MenuItem_Click(object sender, EventArgs e) => MenuItemClicked?.Invoke(sender, e);
Пример #8
0
 protected virtual void OnMenuItemClicked(MenuItemClickedEventArgs e)
 {
     MenuItemClicked?.Invoke(this, e);
 }
Пример #9
0
 public void Handle(MenuItemClicked message) => ActivateAreaDetails(message.AreaID);
 public void Handle(MenuItemClicked message) => ActivateItem(Info);
Пример #11
0
 public void Handle(MenuItemClicked message) => UpdateDetails(message.AreaID);
Пример #12
0
 private void MenuItem_ItemClicked(object sender, EventArgs e)
 {
     MenuItemClicked?.Invoke(sender, e);
 }
Пример #13
0
 public async Task ExecuteMenuItemCommand()
 {
     MenuItemClicked?.Invoke(null, SelectedMenuItem);
 }