예제 #1
0
 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();
 }
예제 #2
0
 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();
 }