Subversion Repositories Projects

Rev

Rev 2318 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2318 Rev 2321
Line 2484... Line 2484...
2484
                if(sVal != "") _dThresholdDistanceMax = Convert.ToDouble(sVal);
2484
                if(sVal != "") _dThresholdDistanceMax = Convert.ToDouble(sVal);
2485
                sVal = ini.IniReadValue("threshold", "RCThreshold");
2485
                sVal = ini.IniReadValue("threshold", "RCThreshold");
2486
                if(sVal != "") _iThresholdRC = Convert.ToInt32(sVal);
2486
                if(sVal != "") _iThresholdRC = Convert.ToInt32(sVal);
2487
                sVal = ini.IniReadValue("threshold", "MagFieldThreshold");
2487
                sVal = ini.IniReadValue("threshold", "MagFieldThreshold");
2488
                if(sVal != "") _iThresholdMagField = Convert.ToInt32(sVal);
2488
                if(sVal != "") _iThresholdMagField = Convert.ToInt32(sVal);
-
 
2489
 
-
 
2490
                sVal = ini.IniReadValue("waypoints", "wpcolor");
-
 
2491
                if(sVal != "") comboBoxWPColor.SelectedIndex = Convert.ToInt32(sVal);
-
 
2492
                sVal = ini.IniReadValue("waypoints", "poicolor");
-
 
2493
                if(sVal != "") comboBoxPOIColor.SelectedIndex = Convert.ToInt32(sVal);
-
 
2494
                sVal = ini.IniReadValue("waypoints", "fscolor");
-
 
2495
                if(sVal != "") comboBoxFSColor.SelectedIndex = Convert.ToInt32(sVal);
-
 
2496
                sVal = ini.IniReadValue("waypoints", "coptercolor");
-
 
2497
                if(sVal != "") comboBoxCopterColor.SelectedIndex = Convert.ToInt32(sVal);
2489
            }
2498
            }
2490
            catch (Exception e)
2499
            catch (Exception e)
2491
            {
2500
            {
Line 2492... Line 2501...
2492
 
2501
 
Line 2562... Line 2571...
2562
                ini.IniWriteValue("threshold", "VoiceRCLevelWarnEnable", _bVoiceRCLevelPlay.ToString());
2571
                ini.IniWriteValue("threshold", "VoiceRCLevelWarnEnable", _bVoiceRCLevelPlay.ToString());
2563
                ini.IniWriteValue("threshold", "DistanceWarning", _dThresholdDistanceWarn.ToString());
2572
                ini.IniWriteValue("threshold", "DistanceWarning", _dThresholdDistanceWarn.ToString());
2564
                ini.IniWriteValue("threshold", "MaxDistance", _dThresholdDistanceMax.ToString());
2573
                ini.IniWriteValue("threshold", "MaxDistance", _dThresholdDistanceMax.ToString());
2565
                ini.IniWriteValue("threshold", "RCThreshold", _iThresholdRC.ToString());
2574
                ini.IniWriteValue("threshold", "RCThreshold", _iThresholdRC.ToString());
2566
                ini.IniWriteValue("threshold", "MagFieldThreshold", _iThresholdMagField.ToString());
2575
                ini.IniWriteValue("threshold", "MagFieldThreshold", _iThresholdMagField.ToString());
-
 
2576
 
-
 
2577
                ini.IniWriteValue("waypoints", "wpcolor", comboBoxWPColor.SelectedIndex.ToString());
-
 
2578
                ini.IniWriteValue("waypoints", "poicolor", comboBoxPOIColor.SelectedIndex.ToString());
-
 
2579
                ini.IniWriteValue("waypoints", "fscolor", comboBoxFSColor.SelectedIndex.ToString());
-
 
2580
                ini.IniWriteValue("waypoints", "coptercolor", comboBoxCopterColor.SelectedIndex.ToString());
2567
            }
2581
            }
2568
            catch (Exception e)
2582
            catch (Exception e)
2569
            {
2583
            {
Line 2570... Line 2584...
2570
 
2584
 
Line 2806... Line 2820...
2806
                        }
2820
                        }
2807
                    }
2821
                    }
2808
                }
2822
                }
2809
            });
2823
            });
2810
        }
2824
        }
2811
 
-
 
2812
        private void comboBoxCopterColor_DropDownClosed(object sender, EventArgs e)
2825
        private void comboBoxCopterColor_DropDownClosed(object sender, EventArgs e)
2813
        {
2826
        {
2814
            Dispatcher.Invoke(() => {
2827
            Dispatcher.Invoke(() => {
2815
                if (comboBoxCopterColor.SelectionBoxItem != null)
2828
                if (comboBoxCopterColor.SelectionBoxItem != null)
2816
                {
2829
                {
Line 2819... Line 2832...
2819
                }
2832
                }
2820
                else
2833
                else
2821
                    ((CustomMarkerCopter)(copter.Shape)).setColor("red");
2834
                    ((CustomMarkerCopter)(copter.Shape)).setColor("red");
2822
            });
2835
            });
2823
        }
2836
        }
2824
 
-
 
2825
        private void btnLoadWPLFile_Click(object sender, RoutedEventArgs e)
2837
        private void btnLoadWPLFile_Click(object sender, RoutedEventArgs e)
2826
        {
2838
        {
2827
            _readWPLFile();
2839
            _readWPLFile();
2828
        }
2840
        }
2829
        #endregion WP
2841
        #endregion WP