source: trunk/CrypPlugins/StreamComparator/StreamComparatorSettings.cs @ 2527

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

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

File size: 1.9 KB
Line 
1/*
2   Copyright 2008 Thomas Schmid, University of Siegen
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 System.ComponentModel;
23using Cryptool.PluginBase.Analysis;
24
25namespace Cryptool.StreamComparator
26{
27  public class StreamComparatorSettings : ISettings
28  {
29    private bool diff;
30       
31    [ContextMenu("Diff", "Create diff - yes / no", 1, ContextMenuControlType.CheckBox, new int[] { 3 }, "Create diff")]
32    [TaskPaneAttribute("Create Diff", "Create diff - yes / no.", "", 1, false, ControlType.CheckBox, "", null)]
33    public bool Diff
34    {
35      get { return diff; }
36      set 
37      {
38        if (diff != value)
39        {         
40          hasChanges = true;
41          diff = value;
42          OnPropertyChanged("Diff");
43        }
44      }
45    }
46
47    private bool hasChanges;
48    public bool HasChanges
49    {
50      get { return hasChanges; }
51      set { hasChanges = value; }
52    }
53
54    #region INotifyPropertyChanged Members
55
56    public event PropertyChangedEventHandler PropertyChanged;
57
58    protected void OnPropertyChanged(string name)
59    {
60      if (PropertyChanged != null)
61      {
62        PropertyChanged(this, new PropertyChangedEventArgs(name));
63      }
64    }
65
66    #endregion
67
68  }
69}
Note: See TracBrowser for help on using the repository browser.