public FormMailStringItem(string name, string value, FormMailItemType type, bool spamCheck) { _name = name; _value = value; _type = type; _spamCheck = spamCheck; }
/// <summary> /// Adds a new control to the address /// </summary> /// <param name="label">The label to be displayed next to the value.</param> /// <param name="value">The value to be displayed on the address.</param> /// <param name="type">Binary representation of the data type in <paramref name="value"/>.</param> /// <param name="spamCheck">Enables or disables spam checking on <paramref name="value"/>.</param> public void AddFormMailItem(string label, string value, FormMailItemType type, bool spamCheck) { _formMailItems.Add(new FormMailStringItem(label, value, type, spamCheck)); }
/// <summary> /// Adds a new control to the address. /// </summary> /// <param name="label">The label to be displayed next to the value.</param> /// <param name="value">The value to be displayed on the address.</param> /// <param name="type">Binary representation of the data type in <paramref name="value"/>.</param> public void AddFormMailItem(string label, string value, FormMailItemType type) { AddFormMailItem(label, value, type, true); }