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)); }
//============================================================ // 永続化変換 //============================================================ public static ITreeNodeCheckBox GetInstance(string name) { return(TreeNodeCheckBox.GetInstance(name)); }