613,6 → 613,10 |
stbRCLevelAnim = TryFindResource("RCCritAnim") as Storyboard; |
_setMotorGridSize(); |
} |
private void Window_Closing(object sender, CancelEventArgs e) |
{ |
_writeIni(); |
} |
#endregion events |
|
#region GMap |
2175,6 → 2179,13 |
mp.Play(); |
} |
} |
|
/// <summary> |
/// Switch between fullscreen and normal window mode |
/// save & restore scaling settings |
/// </summary> |
/// <param name="sender"></param> |
/// <param name="e"></param> |
private void imageFullscreen_MouseDown(object sender, MouseButtonEventArgs e) |
{ |
if (winState.isMaximized) |
2230,7 → 2241,10 |
if (GridWP != null) |
GridWP.Margin = new Thickness(GridWP.Margin.Left, 36 * UIScaleTopSlider.Value, GridWP.Margin.Right, GridWP.Margin.Bottom); |
} |
|
/// <summary> |
/// restore the saved scalings for the fullscreen/normal window mode |
/// </summary> |
/// <param name="bFull">the mode the window is set to</param> |
void _setScaleSliders(bool bFull) |
{ |
if(bFull) |
2253,6 → 2267,10 |
} |
} |
|
/// <summary> |
/// save the scalings for the actual window mode |
/// </summary> |
/// <param name="bFull">the actual window mode</param> |
void _saveScaleSliders(bool bFull) |
{ |
|
2460,12 → 2478,6 |
ini.IniWriteValue("threshold", "MagFieldThreshold", _iThresholdMagField.ToString()); |
} |
#endregion functions |
|
|
private void Window_Closing(object sender, CancelEventArgs e) |
{ |
_writeIni(); |
} |
} |
public class BooleanToVisibilityConverter : IValueConverter |
{ |