Ignore:
Timestamp:
Mar 16, 2009, 9:50:40 PM (13 years ago)
Author:
enkler
Message:

added Contextmenu support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/CaesarAnalysisHelper/CaesarAnalysisHelperSettings.cs

    r250 r257  
    2121        [ContextMenu("Language", "The Language", 0, DisplayLevel.Beginner, ContextMenuControlType.ComboBox, null, new[] { "German", "English", "French", "Spanish" })]
    2222        [TaskPane("Language", "The text's language.", null, 0, false, DisplayLevel.Beginner, ControlType.ComboBox, new[] { "German", "English", "French", "Spanish" })]
    23         public string TextLanguage
     23        public int TextLanguage
    2424        {
    2525            get
    2626            {
    27                 return Lang.ToString();
     27                return (int)Lang;
    2828            }
    2929            set
     
    3131                try
    3232                {
    33                     Lang = (Language)Enum.Parse(typeof(Language), value);
     33                    Lang = (Language)value;
    3434                    switch (Lang)
    3535                    {
Note: See TracChangeset for help on using the changeset viewer.