private void ListMenuButton_Click(object sender, RoutedEventArgs e) { if (menuListWindow == null) { menuListWindow = new MenuListWindow(transactController); menuListWindow.Closed += DestroyMenuListWindow; } if (!menuListWindow.IsVisible) { menuListWindow.Show(); } else { menuListWindow.Focus(); } }