Rev 2304 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2304 | Rev 2310 | ||
---|---|---|---|
Line 611... | Line 611... | ||
611 | stbMagneticFieldAnim = TryFindResource("MagneticFieldCritAnim") as Storyboard; |
611 | stbMagneticFieldAnim = TryFindResource("MagneticFieldCritAnim") as Storyboard; |
612 | stbDistanceWarnAnim = TryFindResource("DistanceCritAnim") as Storyboard; |
612 | stbDistanceWarnAnim = TryFindResource("DistanceCritAnim") as Storyboard; |
613 | stbRCLevelAnim = TryFindResource("RCCritAnim") as Storyboard; |
613 | stbRCLevelAnim = TryFindResource("RCCritAnim") as Storyboard; |
614 | _setMotorGridSize(); |
614 | _setMotorGridSize(); |
615 | } |
615 | } |
- | 616 | private void Window_Closing(object sender, CancelEventArgs e) |
|
- | 617 | { |
|
- | 618 | _writeIni(); |
|
- | 619 | } |
|
616 | #endregion events |
620 | #endregion events |
Line 617... | Line 621... | ||
617 | 621 | ||
Line 618... | Line 622... | ||
618 | #region GMap |
622 | #region GMap |
Line 2173... | Line 2177... | ||
2173 | MediaPlayer.MediaPlayer mp = new MediaPlayer.MediaPlayer(); |
2177 | MediaPlayer.MediaPlayer mp = new MediaPlayer.MediaPlayer(); |
2174 | mp.Open(file); |
2178 | mp.Open(file); |
2175 | mp.Play(); |
2179 | mp.Play(); |
2176 | } |
2180 | } |
2177 | } |
2181 | } |
- | 2182 | ||
- | 2183 | /// <summary> |
|
- | 2184 | /// Switch between fullscreen and normal window mode |
|
- | 2185 | /// save & restore scaling settings |
|
- | 2186 | /// </summary> |
|
- | 2187 | /// <param name="sender"></param> |
|
- | 2188 | /// <param name="e"></param> |
|
2178 | private void imageFullscreen_MouseDown(object sender, MouseButtonEventArgs e) |
2189 | private void imageFullscreen_MouseDown(object sender, MouseButtonEventArgs e) |
2179 | { |
2190 | { |
2180 | if (winState.isMaximized) |
2191 | if (winState.isMaximized) |
2181 | { |
2192 | { |
2182 | winState.Restore(this); |
2193 | winState.Restore(this); |
Line 2228... | Line 2239... | ||
2228 | if (GridData != null) |
2239 | if (GridData != null) |
2229 | GridData.Margin = new Thickness(GridData.Margin.Left, 36 * UIScaleTopSlider.Value, GridData.Margin.Right, GridData.Margin.Bottom); |
2240 | GridData.Margin = new Thickness(GridData.Margin.Left, 36 * UIScaleTopSlider.Value, GridData.Margin.Right, GridData.Margin.Bottom); |
2230 | if (GridWP != null) |
2241 | if (GridWP != null) |
2231 | GridWP.Margin = new Thickness(GridWP.Margin.Left, 36 * UIScaleTopSlider.Value, GridWP.Margin.Right, GridWP.Margin.Bottom); |
2242 | GridWP.Margin = new Thickness(GridWP.Margin.Left, 36 * UIScaleTopSlider.Value, GridWP.Margin.Right, GridWP.Margin.Bottom); |
2232 | } |
2243 | } |
2233 | - | ||
- | 2244 | /// <summary> |
|
- | 2245 | /// restore the saved scalings for the fullscreen/normal window mode |
|
- | 2246 | /// </summary> |
|
- | 2247 | /// <param name="bFull">the mode the window is set to</param> |
|
2234 | void _setScaleSliders(bool bFull) |
2248 | void _setScaleSliders(bool bFull) |
2235 | { |
2249 | { |
2236 | if(bFull) |
2250 | if(bFull) |
2237 | { |
2251 | { |
2238 | UIScaleSlider.Value = scaleFullAll; |
2252 | UIScaleSlider.Value = scaleFullAll; |
Line 2251... | Line 2265... | ||
2251 | UIScaleLOGSlider.Value = scaleNormalLOG; |
2265 | UIScaleLOGSlider.Value = scaleNormalLOG; |
2252 | UIScaleHorizonSlider.Value = scaleNormalHorizon; |
2266 | UIScaleHorizonSlider.Value = scaleNormalHorizon; |
2253 | } |
2267 | } |
2254 | } |
2268 | } |
Line -... | Line 2269... | ||
- | 2269 | ||
- | 2270 | /// <summary> |
|
- | 2271 | /// save the scalings for the actual window mode |
|
- | 2272 | /// </summary> |
|
2255 | 2273 | /// <param name="bFull">the actual window mode</param> |
|
2256 | void _saveScaleSliders(bool bFull) |
2274 | void _saveScaleSliders(bool bFull) |
Line 2257... | Line 2275... | ||
2257 | { |
2275 | { |
2258 | 2276 | ||
Line 2458... | Line 2476... | ||
2458 | ini.IniWriteValue("threshold", "MaxDistance", _dThresholdDistanceMax.ToString()); |
2476 | ini.IniWriteValue("threshold", "MaxDistance", _dThresholdDistanceMax.ToString()); |
2459 | ini.IniWriteValue("threshold", "RCThreshold", _iThresholdRC.ToString()); |
2477 | ini.IniWriteValue("threshold", "RCThreshold", _iThresholdRC.ToString()); |
2460 | ini.IniWriteValue("threshold", "MagFieldThreshold", _iThresholdMagField.ToString()); |
2478 | ini.IniWriteValue("threshold", "MagFieldThreshold", _iThresholdMagField.ToString()); |
2461 | } |
2479 | } |
2462 | #endregion functions |
2480 | #endregion functions |
2463 | - | ||
2464 | - | ||
2465 | private void Window_Closing(object sender, CancelEventArgs e) |
- | |
2466 | { |
- | |
2467 | _writeIni(); |
- | |
2468 | } |
- | |
2469 | } |
2481 | } |
2470 | public class BooleanToVisibilityConverter : IValueConverter |
2482 | public class BooleanToVisibilityConverter : IValueConverter |
2471 | { |
2483 | { |
Line 2472... | Line 2484... | ||
2472 | 2484 |