source: trunk/CrypPlugins/T-310/T310Settings.cs @ 3132

Last change on this file since 3132 was 3132, checked in by krauss, 11 years ago

i18n: externalized most plugins, some translations

File size: 2.0 KB
Line 
1/*
2   Copyright 1995 - 2010 Jörg Drobick
3   Copyright 2010 Matthäus Wander, University of Duisburg-Essen
4
5   Licensed under the Apache License, Version 2.0 (the "License");
6   you may not use this file except in compliance with the License.
7   You may obtain a copy of the License at
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
11   Unless required by applicable law or agreed to in writing, software
12   distributed under the License is distributed on an "AS IS" BASIS,
13   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   See the License for the specific language governing permissions and
15   limitations under the License.
16*/
17using System;
18using System.Collections.Generic;
19using System.Linq;
20using System.Text;
21using Cryptool.PluginBase;
22using System.ComponentModel;
23
24namespace Cryptool.Plugins.T310
25{
26    public enum ModeEnum
27    {
28        Encrypt,
29        Decrypt
30    }
31
32    public class T310Settings : ISettings
33    {
34        #region Private Variables
35
36        private bool hasChanges = false;
37        private ModeEnum mode = ModeEnum.Encrypt;
38
39        #endregion
40
41        #region TaskPane Settings
42
43        [TaskPane( "ModeCaption", "ModeTooltip", null, 1, false, ControlType.ComboBox, new string[] { "Encrypt", "Decrypt" })]
44        public ModeEnum Mode
45        {
46            get
47            {
48                return mode;
49            }
50            set
51            {
52                if (mode != value)
53                {
54                    mode = value;
55                    hasChanges = true;
56                }
57            }
58        }
59
60        #endregion
61
62        #region ISettings Members
63
64        public bool HasChanges
65        {
66            get
67            {
68                return hasChanges;
69            }
70            set
71            {
72                hasChanges = value;
73            }
74        }
75
76        #endregion
77
78        #region INotifyPropertyChanged Members
79
80        public event PropertyChangedEventHandler PropertyChanged;
81
82        #endregion
83    }
84}
Note: See TracBrowser for help on using the repository browser.