source: trunk/CrypPlugins/ClipboardOutput/ClipboardOutputSettings.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 Timm Korte, 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 System.IO;
22using Cryptool.PluginBase;
23using System.Security.Cryptography;
24using System.ComponentModel;
25
26namespace ClipboardOutput
27{
28  public class ClipboardOutputSettings : ISettings
29  {
30    private int format = 0; //0="Text", 1="Hex", 2="Base64"
31
32    [ContextMenu("Format", "Data format to convert to", 1, ContextMenuControlType.ComboBox, null, new string[] { "text", "hex", "base64" })]
33    [TaskPane("Format", "Data format to convert to", "", 1, false, ControlType.ComboBox, new string[] { "text", "hex", "base64" })]
34    public int Format
35    {
36      get { return this.format; }
37      set
38      {
39        this.format = (int)value;
40        OnPropertyChanged("Format");
41      }
42    }
43
44    #region INotifyPropertyChanged Members
45
46    public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
47
48    protected void OnPropertyChanged(string name)
49    {
50      if (PropertyChanged != null)
51      {
52        PropertyChanged(this, new PropertyChangedEventArgs(name));
53      }
54    }
55
56    #endregion
57
58    #region ISettings Members
59
60    private bool hasChanges = false;
61    public bool HasChanges
62    {
63      get { return hasChanges; }
64      set { hasChanges = value; }
65    }
66
67    #endregion
68  }
69}
Note: See TracBrowser for help on using the repository browser.