private void Row_Clicked(object sender, ButtonReleaseEventArgs args) { if (args.Event.Button != 3) { return; } _gameTableSelection.GetSelected(out TreeIter treeIter); if (treeIter.UserData == IntPtr.Zero) { return; } GameTableContextMenu contextMenu = new GameTableContextMenu(_tableStore, treeIter); contextMenu.ShowAll(); contextMenu.PopupAtPointer(null); }
private void Row_Clicked(object sender, ButtonReleaseEventArgs args) { if (args.Event.Button != 3) { return; } _gameTableSelection.GetSelected(out TreeIter treeIter); if (treeIter.UserData == IntPtr.Zero) { return; } BlitStruct <ApplicationControlProperty> controlData = (BlitStruct <ApplicationControlProperty>)_tableStore.GetValue(treeIter, 10); GameTableContextMenu contextMenu = new GameTableContextMenu(_tableStore, controlData, treeIter, _virtualFileSystem); contextMenu.ShowAll(); contextMenu.PopupAtPointer(null); }