コード例 #1
0
        public void Remove(MaskButtonEdit aEdit)
        {
            EditElement aElement = Find(aEdit);

            if (aElement != null)
            {
                List.Remove(aElement);
            }
        }
コード例 #2
0
 public EditElement Find(MaskButtonEdit aEdit)
 {
     for (int i = 0; i < Count; i++)
     {
         if (this[i].OwnerEdit == aEdit)
         {
             return(this[i]);
         }
     }
     return(null);
 }
コード例 #3
0
 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);
             }
         }
     }
 }
コード例 #7
0
 public bool Contains(MaskButtonEdit aEdit)
 {
     return(Find(aEdit) != null);
 }
コード例 #8
0
 public MaskButtonEditMaskProperties(MaskButtonEdit aedit)
     : base()
 {
     aEdit = aedit;
 }