示例#1
0
 public override object ConvertFrom(CM::ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)
 {
     if (value is string)
     {
         ITreeNodeCheckBox ret = TreeNodeCheckBox.GetInstance((string)value);
         if (ret != null)
         {
             return(ret);
         }
         return(TreeNodeCheckBox.DoubleBorder);
     }
     else if (value is ITreeNodeCheckBox)
     {
         return(value);
     }
     return(base.ConvertFrom(context, culture, value));
 }
示例#2
0
 //============================================================
 //		永続化変換
 //============================================================
 public static ITreeNodeCheckBox GetInstance(string name)
 {
     return(TreeNodeCheckBox.GetInstance(name));
 }