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

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

added settings tab for CrypP2P and added timeout setting to it

File size: 1.1 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
30            P2PSettings.Default.PropertyChanged += delegate
31                                                       {
32                                                           P2PSettings.Default.Save();
33                                                       };
34        }
35    }
36}
Note: See TracBrowser for help on using the repository browser.