source: trunk/CrypPlugins/BigNumber/BigNumberInputSettings.cs @ 2411

Last change on this file since 2411 was 2334, checked in by Matthäus Wander, 11 years ago

removed 1006 occurences of DisplayLevel in 218 files (see #122)

File size: 2.0 KB
Line 
1/*                             
2   Copyright 2009 Team CrypTool (Sven Rech,Dennis Nolte,Raoul Falk,Nils Kopal), Uni Duisburg-Essen
3
4   Licensed under the Apache License, Version 2.0 (the "License");
5   you may not use this file except in compliance with the License.
6   You may obtain a copy of the License at
7
8       http://www.apache.org/licenses/LICENSE-2.0
9
10   Unless required by applicable law or agreed to in writing, software
11   distributed under the License is distributed on an "AS IS" BASIS,
12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   See the License for the specific language governing permissions and
14   limitations under the License.
15*/
16
17using System;
18using System.Collections.Generic;
19using System.Linq;
20using System.Text;
21using Cryptool.PluginBase;
22using Cryptool.PluginBase.Miscellaneous;
23using System.ComponentModel;
24
25namespace Cryptool.Plugins.BigNumber
26{
27    class BigNumberInputSettings : ISettings
28    {
29        #region Number
30        private String number = "1";
31        [TaskPane("Number", "The number this component should output.", null, 1, false, ControlType.TextBox)]
32        public String Number
33        {
34            get 
35            {
36                return number;
37            }
38            set
39            {
40                number = value;
41                OnPropertyChanged("Number");
42            }
43        }
44        #endregion
45
46        #region ISettings Members
47
48        private bool hasChanges;
49        public bool HasChanges
50        {
51            get { return hasChanges; }
52            set { hasChanges = value; }
53        }
54
55        #endregion
56
57        #region INotifyPropertyChanged Members
58
59        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
60
61        private void OnPropertyChanged(string p)
62        {
63            if (PropertyChanged != null)
64                PropertyChanged(this, new PropertyChangedEventArgs(p));
65        }
66
67        #endregion
68    }
69}
Note: See TracBrowser for help on using the repository browser.