Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="initialEditText"></param>
 public override void SetInitialEditText(string initialEditText)
 {
     string[] elements = this._info.GetElementsFromEditText(initialEditText, this._blank, this._saveLiteral);
     if (elements != null)
     {
         base.SetInitialState(new LegacyMaskManagerState(this._info, elements, 0, 0, 0, 0));
     }
     else
     {
         LegacyMaskManagerState state = new LegacyMaskManagerState(this._info);
         state.Insert(initialEditText);
         base.SetInitialState(new LegacyMaskManagerState(this._info, state.Elements, 0, 0, 0, 0));
     }
     this.CursorHome(false);
 }
Пример #2
0
 LegacyMaskManagerState(LegacyMaskManagerState source) : this(source.Info, (string[])source.Elements.Clone(), source.CursorPositionElement, source.CursorPositionInsideElement, source.SelectionAnchorElement, source.SelectionAnchorInsideElement)
 {
 }