Example #1
0
 public CustomProperty()
 {
     this.sName                   = "";
     this.oValue                  = null;
     this.bIsReadOnly             = false;
     this.bVisible                = true;
     this.sDescription            = "";
     this.sCategory               = "";
     this.bIsPassword             = false;
     this.bIsPercentage           = false;
     this.bParenthesize           = false;
     this.sFilter                 = null;
     this.eDialogType             = UIFilenameEditor.FileDialogType.LoadFileDialog;
     this.bUseFileNameEditor      = false;
     this.oChoices                = null;
     this.bIsBrowsable            = false;
     this.eBrowsablePropertyLabel = BrowsableTypeConverter.LabelStyle.lsEllipsis;
     this.bRef                 = false;
     this.oRef                 = null;
     this.sProp                = "";
     this.oDatasource          = null;
     this.sDisplayMember       = null;
     this.sValueMember         = null;
     this.oSelectedValue       = null;
     this.oSelectedItem        = null;
     this.bIsDropdownResizable = false;
     this.oCustomAttributes    = null;
     this.oTag                 = null;
     this.oDefaultValue        = null;
     this.oDefaultType         = null;
     this.oCustomEditor        = null;
     this.oCustomTypeConverter = null;
     this.sName                = "New Property";
     this.oValue               = new string(Conversions.ToCharArrayRankOne(""));
 }
Example #2
0
 public CustomProperty(string strName, ref object objRef, string strProp, bool boolIsReadOnly = true, string strCategory = "", string strDescription = "", bool boolVisible = true)
 {
     this.sName                   = "";
     this.oValue                  = null;
     this.bIsReadOnly             = false;
     this.bVisible                = true;
     this.sDescription            = "";
     this.sCategory               = "";
     this.bIsPassword             = false;
     this.bIsPercentage           = false;
     this.bParenthesize           = false;
     this.sFilter                 = null;
     this.eDialogType             = UIFilenameEditor.FileDialogType.LoadFileDialog;
     this.bUseFileNameEditor      = false;
     this.oChoices                = null;
     this.bIsBrowsable            = false;
     this.eBrowsablePropertyLabel = BrowsableTypeConverter.LabelStyle.lsEllipsis;
     this.bRef                 = false;
     this.oRef                 = null;
     this.sProp                = "";
     this.oDatasource          = null;
     this.sDisplayMember       = null;
     this.sValueMember         = null;
     this.oSelectedValue       = null;
     this.oSelectedItem        = null;
     this.bIsDropdownResizable = false;
     this.oCustomAttributes    = null;
     this.oTag                 = null;
     this.oDefaultValue        = null;
     this.oDefaultType         = null;
     this.oCustomEditor        = null;
     this.oCustomTypeConverter = null;
     this.sName                = strName;
     this.bIsReadOnly          = boolIsReadOnly;
     this.sDescription         = strDescription;
     this.sCategory            = strCategory;
     this.bVisible             = boolVisible;
     this.bRef                 = true;
     this.oRef                 = RuntimeHelpers.GetObjectValue(objRef);
     this.sProp                = strProp;
     if (this.Value != null)
     {
         this.oDefaultValue = RuntimeHelpers.GetObjectValue(this.Value);
     }
 }