public void OnTabSelected(bool boolz) { if (boolz == true) { OnTabSelectedEvent.Invoke(boolz); TabControllerEvent.Invoke(TabButton); } }
protected void OnTabButtonPressed(object o, ButtonPressEventArgs args) { if (args.Event.Button == 1) { DraggingController.GetInstance().ClearEvents(); DraggingController.GetInstance().OnDropEvent += OnDropUIElement; OnTabSelectedEvent?.Invoke(this); } else if (args.Event.Button == 3) { _mouseRightClickPoint = GetCanvasMousePos(); Gtk.Menu rightButtonMenu = new Gtk.Menu(); Gtk.MenuItem menuItem = null; menuItem = new Gtk.MenuItem("Delete tab page"); menuItem.ButtonReleaseEvent += OnDeleteTabPagePressed; rightButtonMenu.Append(menuItem); rightButtonMenu.ShowAll(); rightButtonMenu.Popup(); } }
public void Select() { OnTabSelectedEvent?.Invoke(this.gameObject); }