예제 #1
0
        public string GetDescription(IWizardControl ctrl)
        {
            if (null == ctrl)
            {
                return("<Error>");
            }
            string name = ctrl.GetType().Name;

            name  = name.Substring(0, name.Length - "Control".Length);
            name += "Description";
            string result = _thisType.InvokeMember(name, System.Reflection.BindingFlags.GetProperty, null, this, null) as string;

            return(result);
        }
예제 #2
0
 public string GetDescription(IWizardControl ctrl)
 {
     if (null == ctrl)
         return "<Error>";
     string name = ctrl.GetType().Name;
     name = name.Substring(0, name.Length - "Control".Length);
     name += "Description";
     string result = _thisType.InvokeMember(name, System.Reflection.BindingFlags.GetProperty, null, this, null) as string;
     return result;
 }