Exemplo n.º 1
0
        public static void MapText(IEntryHandler handler, IEntry entry)
        {
            handler.PlatformView?.UpdateText(entry);

            // Any text update requires that we update any attributed string formatting
            MapFormatting(handler, entry);
        }
Exemplo n.º 2
0
 public static void MapClearButtonVisibility(IEntryHandler handler, IEntry entry)
 {
     if (handler is EntryHandler platformHandler)
     {
         handler.PlatformView?.UpdateClearButtonVisibility(entry, platformHandler.GetClearButtonDrawable);
     }
 }
Exemplo n.º 3
0
 public static void MapPlaceholderColor(IEntryHandler handler, IEntry entry)
 {
     if (handler is EntryHandler platformHandler)
     {
         handler.PlatformView?.UpdatePlaceholderColor(entry);
     }
 }
Exemplo n.º 4
0
 public static void MapFormatting(IEntryHandler handler, IEntry entry)
 {
     // Update all of the attributed text formatting properties
     // Setting any of those may have removed text alignment settings,
     // so we need to make sure those are applied, too
     handler.PlatformView?.UpdateMaxLength(entry);
     handler.PlatformView?.UpdateHorizontalTextAlignment(entry);
 }
Exemplo n.º 5
0
        public IHttpActionResult CaptureLead(AllFieldCapture lead, string product)
        {
            //NameValueCollection nvc = form.ReadAsNameValueCollection();

            _entryHandler = new EntryHandler("mortgage");
            _entryHandler.CaptureLead(lead);

            return Ok();
        }
Exemplo n.º 6
0
 public static void MapSelectionLength(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateSelectionLength(entry);
Exemplo n.º 7
0
 public static void MapCharacterSpacing(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateCharacterSpacing(entry);
Exemplo n.º 8
0
 public static void MapCursorPosition(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateCursorPosition(entry);
Exemplo n.º 9
0
        public static void MapFont(IEntryHandler handler, IEntry entry)
        {
            var fontManager = handler.GetRequiredService <IFontManager>();

            handler.PlatformView?.UpdateFont(entry, fontManager);
        }
Exemplo n.º 10
0
 public static void MapReturnType(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateReturnType(entry);
Exemplo n.º 11
0
 public static void MapTextColor(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateTextColor(entry);
Exemplo n.º 12
0
 public static void MapHorizontalTextAlignment(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateHorizontalTextAlignment(entry);
Exemplo n.º 13
0
 public static void MapCursorPosition(IEntryHandler handler, IEntry entry)
 {
 }
Exemplo n.º 14
0
 public static void MapIsTextPredictionEnabled(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateIsTextPredictionEnabled(entry);
Exemplo n.º 15
0
 public static void MapCharacterSpacing(IEntryHandler handler, IEntry entry)
 {
 }
Exemplo n.º 16
0
 public static void MapBackground(IEntryHandler handler, IEntry entry)
 {
     handler.UpdateValue(nameof(handler.ContainerView));
     handler.ToPlatform()?.UpdateBackground(entry);
 }
Exemplo n.º 17
0
 public static void MapCursorPosition(IEntryHandler handler, IEntry entry)
 {
     handler.PlatformView?.UpdateSelectionLength(entry);
 }
Exemplo n.º 18
0
 public static void MapSelectionLength(IEntryHandler handler, IEntry entry)
 {
 }
Exemplo n.º 19
0
 public static void MapClearButtonVisibility(IEntryHandler handler, IEntry entry)
 {
     handler.PlatformView?.UpdateClearButtonVisibility(entry);
 }
Exemplo n.º 20
0
 public static void MapClearButtonVisibility(IEntryHandler handler, IEntry entry)
 {
 }
Exemplo n.º 21
0
 public static void MapPlaceholder(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdatePlaceholder(entry);
Exemplo n.º 22
0
 public static void MapBackground(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateBackground(entry);
Exemplo n.º 23
0
 public static void MapReturnType(IEntryHandler handler, IEntry entry)
 {
 }
Exemplo n.º 24
0
 public static void MapIsPassword(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateIsPassword(entry);
Exemplo n.º 25
0
 public static void MapKeyboard(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateKeyboard(entry);
Exemplo n.º 26
0
 public static void MapVerticalTextAlignment(IEntryHandler handler, IEntry entry) =>
 handler?.PlatformView?.UpdateVerticalTextAlignment(entry);
Exemplo n.º 27
0
 public static void MapText(IEntryHandler handler, IEntry entry)
 {
 }
Exemplo n.º 28
0
 public static void MapMaxLength(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateMaxLength(entry);
Exemplo n.º 29
0
 public static void MapFont(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateFont(entry, handler.GetRequiredService <IFontManager>());
Exemplo n.º 30
0
 public static void MapIsReadOnly(IEntryHandler handler, IEntry entry) =>
 handler.PlatformView?.UpdateIsReadOnly(entry);
Exemplo n.º 31
0
 public static void MapKeyboard(IEntryHandler handler, IEntry entry)
 {
 }