public void Remove(MaskButtonEdit aEdit) { EditElement aElement = Find(aEdit); if (aElement != null) { List.Remove(aElement); } }
public EditElement Find(MaskButtonEdit aEdit) { for (int i = 0; i < Count; i++) { if (this[i].OwnerEdit == aEdit) { return(this[i]); } } return(null); }
public EditElement(MaskButtonEdit owneredit, int initialValue) { ownerEdit = owneredit; editValue = initialValue; }
public MaskButtonEditMaskManager(string mask, bool isOperatorMask, CultureInfo culture, bool allowNull, MaskButtonEdit aedit) : base(mask, isOperatorMask, culture, allowNull) { fFormatInfo = new MaskButtonEditMaskFormatInfo(mask, this.fInitialDateTimeFormatInfo, aedit); }
public MaskButtonEditMaskFormatElement(string mask, DateTimeFormatInfo datetimeFormatInfo, int PartNumber, MaskButtonEdit aedit) : base(mask, datetimeFormatInfo, DateTimePart.Time) { aIndex = PartNumber; aEdit = aedit; }
public MaskButtonEditMaskFormatInfo(string mask, DateTimeFormatInfo dateTimeFormatInfo, MaskButtonEdit aedit) : base(mask, dateTimeFormatInfo) { for (int i = 0; i < Count; i++) { if ((innerList[i] is DateTimeMaskFormatElementLiteral) && (i < Count - 1) && (innerList[i + 1] is DateTimeMaskFormatElementLiteral)) { string aMaskSymbol = ((DateTimeMaskFormatElementLiteral)innerList[i]).Literal + ((DateTimeMaskFormatElementLiteral)innerList[i + 1]).Literal; MaskElement aElement = MaskElementsRepository.MaskCollection.Find(aMaskSymbol); if (aElement != null) { innerList[i] = new MaskButtonEditMaskFormatElement(aMaskSymbol, dateTimeFormatInfo, aedit.Properties.MaskElements.IndexOf(aElement), aedit); innerList.RemoveAt(i + 1); } } } }
public bool Contains(MaskButtonEdit aEdit) { return(Find(aEdit) != null); }
public MaskButtonEditMaskProperties(MaskButtonEdit aedit) : base() { aEdit = aedit; }