private static void ShowMemoryCardSelection(Game g) { wndMemCard card = new wndMemCard { Tag = g }; bool flag1 = card.ShowDialog() == true; }