source: trunk/CrypP2P/P2PSettingsTab.xaml.cs @ 2505

Last change on this file since 2505 was 2505, checked in by Sven Rech, 11 years ago

fixed earth height in p2psettingstab

File size: 1.2 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows;
6using System.Windows.Controls;
7using System.Windows.Data;
8using System.Windows.Documents;
9using System.Windows.Input;
10using System.Windows.Media;
11using System.Windows.Media.Imaging;
12using System.Windows.Navigation;
13using System.Windows.Shapes;
14using Cryptool.PluginBase.Attributes;
15
16namespace Cryptool.P2P
17{
18    /// <summary>
19    /// Interaction logic for P2PSettingsTab.xaml
20    /// </summary>
21    [Localization("Cryptool.P2P.Properties.Resources")]
22    [SettingsTab("P2PSettings", "/MainSettings/")]
23    public partial class P2PSettingsTab : UserControl
24    {
25        public P2PSettingsTab(Style settingsStyle)
26        {
27            Resources.Add("settingsStyle", settingsStyle);
28            InitializeComponent();
29            earthGrid.DataContext = this;
30
31            P2PSettings.Default.PropertyChanged += delegate
32                                                       {
33                                                           P2PSettings.Default.Save();
34                                                       };
35        }
36    }
37}
Note: See TracBrowser for help on using the repository browser.