Subversion Repositories Projects

Rev

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

Rev 2310 Rev 2312
Line 2301... Line 2301...
2301
        {
2301
        {
2302
            if (!File.Exists(filePath + "\\MKLiveViewSettings.ini"))
2302
            if (!File.Exists(filePath + "\\MKLiveViewSettings.ini"))
2303
                _writeIni();
2303
                _writeIni();
2304
            IniFile ini = new IniFile("MKLiveViewSettings.ini");
2304
            IniFile ini = new IniFile("MKLiveViewSettings.ini");
2305
            ini.path = filePath + "\\MKLiveViewSettings.ini";
2305
            ini.path = filePath + "\\MKLiveViewSettings.ini";
-
 
2306
            try
-
 
2307
            {
Line -... Line 2413...
-
 
2413
            {
2408
            if(sVal != "") _iThresholdMagField = Convert.ToInt32(sVal);
2414
 
Line -... Line 2415...
-
 
2415
                MessageBox.Show("Error parsing ini-file!" + Environment.NewLine + e.Message,"Read ini-file" ,MessageBoxButton.OK,MessageBoxImage.Error);
Line 2409... Line 2416...
2409
 
2416
            }
2410
        }
2417
 
2411
 
2418
        }
2412
 
2419
 
2413
        /// <summary>
2420
        /// <summary>
Line 2414... Line 2421...
2414
        /// save settings to ini-file
2421
        /// save settings to ini-file
2415
        /// </summary>
2422
        /// </summary>
Line 2473... Line 2611...
2473
            ini.IniWriteValue("threshold", "VoiceDistanceWarnEnable", _bVoiceDistancePlay.ToString());
2611
            }
2474
            ini.IniWriteValue("threshold", "VoiceRCLevelWarnEnable", _bVoiceRCLevelPlay.ToString());
2612
        }
2475
            ini.IniWriteValue("threshold", "DistanceWarning", _dThresholdDistanceWarn.ToString());
2613
 
2476
            ini.IniWriteValue("threshold", "MaxDistance", _dThresholdDistanceMax.ToString());
2614
        private void btnLoadWPLFile_Click(object sender, RoutedEventArgs e)
2477
            ini.IniWriteValue("threshold", "RCThreshold", _iThresholdRC.ToString());
2615
        {