void ChangeLodWindowVisibility(bool show) { if (show) { if (lodWindow == null) { lodWindow = new LodWindow(Screen) { HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Bottom }; } lodWindow.Show(); } else { if (lodWindow != null && lodWindow.Visible) { lodWindow.Close(); } } tab.SelectedIndex = mainMenuIndex; lodButton.Focus(); Close(); }
void ChangeLodWindowVisibility(bool show) { if (show) { if (lodWindow == null) { lodWindow = new LodWindow(Screen) { HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Bottom }; } lodWindow.Show(); } else { if (lodWindow != null && lodWindow.Visible) lodWindow.Close(); } tab.SelectedIndex = mainMenuIndex; lodButton.Focus(); Close(); }