/// <summary> /// This is the init/copy method for this class. /// It should be used by the children classes in the constructor in order to correctly fill the properties of the object. /// </summary> /// <param name="objToCopy"></param> protected bool Init(DefaultProperty objToCopy) { if (objToCopy == null) { return(false); } Init(objToCopy.Name, objToCopy.Order, objToCopy.PossibleValues, objToCopy.DependsOn); return(true); }
///////////////////////////////////////////////////////////////////////////////////////////////// #region EQUALITY_COMPARER ///////////////////////////////////////////////////////////////////////////////////////////////// public override bool Equals(object obj) { //if obj is not a DefaultProperty, it is different from the current object: DefaultProperty prop = obj as DefaultProperty; if (prop == null) { return(false); } return(this.Name.Equals(prop.Name, StringComparison.InvariantCultureIgnoreCase)); }
///////////////////////////////////////////////////////////////////////////////////////////////////// #region Add Methods ///////////////////////////////////////////////////////////////////////////////////////////////////// public bool SuggestDefaultProperty(DefaultProperty defProp, int userID) { //send the request and parse the response: string contentToSend = "content=" + HttpUtility.UrlEncode(defProp.Serialize(m_serialFormat)); S2CResObj<object> resp = SendReqObj(SUGGEST_DEFAULTS_URL, contentToSend, true); //build the result: if (!CheckResp(resp)) { PrintRespError(resp); return false; } return ParseBoolResponse(resp); }
/// <summary> /// This is the init/copy method for this class. /// It should be used by the children classes in the constructor in order to correctly fill the properties of the object. /// </summary> /// <param name="objToCopy"></param> protected bool Init(DefaultProperty objToCopy) { if (objToCopy == null) return false; Init(objToCopy.Name, objToCopy.Order, objToCopy.PossibleValues, objToCopy.DependsOn); return true; }
public bool AddDefaultProperty(DefaultProperty defProp) { throw new NotImplementedException(); }