Changeset 305


Ignore:
Timestamp:
May 11, 2009, 6:01:17 PM (13 years ago)
Author:
Thomas Schmid
Message:
  • added new plugins to solution
  • added MetodInfo attribute to TaskPaneAttribute
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPluginBase/Attributes/TaskPaneAttribute.cs

    r287 r305  
    203203
    204204using System;
     205using System.Reflection;
    205206
    206207namespace Cryptool.PluginBase
     
    264265        public bool ChangeableWhileExecuting;
    265266
     267        private MethodInfo method;
     268
     269        public MethodInfo Method
     270        {
     271          get { return method; }
     272          set
     273          {
     274            if (method == null)
     275              method = value;
     276            else
     277              throw new ArgumentException("This setter should only be accessed once.");
     278          }
     279        }
     280
    266281        private string propertyName;
    267282        public string PropertyName
  • trunk/CrypPluginBase/PluginExtension.cs

    r297 r305  
    424424                {
    425425                  TaskPaneAttribute attr = attributes[0];
    426                   attr.PropertyName = mInfo.Name;
     426                  attr.Method = mInfo;
    427427                  // does plugin have a resource file for translation?
    428428                  if (plugin.GetType().GetPluginInfoAttribute().ResourceFile != null)
Note: See TracChangeset for help on using the changeset viewer.