private void InfiniumTilesContainer_RightMouseClicked(object sender, string FormName) { CurFormName = FormName; if (InfiniumStartMenu.Selected == 0) { MenuRemoveFromFavorite.Visible = true; MenuAddToFavorite.Visible = false; } else { MenuRemoveFromFavorite.Visible = false; MenuAddToFavorite.Visible = true; } TileContextMenu.Show(InfiniumTilesContainer); }
private void MapView_TileContext(object sender, EventArgs e) { Point mouse = MapView.PointToClient(Cursor.Position); TileContextMenu.Show(MapView, mouse); }