Beispiel #1
0
        public async Task <string> GetOrderedText(TextOrder textOrder)
        {
            var text     = textOrder.Text.RemoveCarriageReturn();
            var api      = $"{URL}/{text}/order/{textOrder.Option}";
            var response = await HttpGet(api);

            return(response);
        }
Beispiel #2
0
 // Use this for initialization
 void OnEnable()
 {
     if (TextFile != null)
     {
         txtOrd           = GetComponentInParent <TextOrder>();
         CurrentText.text = "";
         Line             = 0;
         Character        = 0;
         TextLines        = TextFile.text.Split('\n');
         InvokeRepeating("UpdateText", 0, 1 / TextSpeed);
     }
 }
Beispiel #3
0
        /// <summary>
        /// Called by parent class for drawing specific variables at top.
        /// Parent class should automatically check for when it is dirty.
        /// </summary>
        protected override void DrawChildInspector()
        {
            boxType   = (TextBoxType)EditorGUILayout.EnumPopup("Box Type", boxType);
            textOrder = (TextOrder)EditorGUILayout.EnumPopup("Text Order", textOrder);

            bool drawList_texts             = true;
            bool drawList_sendIDsForRemoval = true;

            EditorHelper.DrawResizableList <string> ("Texts", ref drawList_texts, ref texts, DrawEntry_Text);
            EditorHelper.DrawResizableList <TriggeredBehaviour_RemoveHudText>
                ("Send Removal IDs", ref drawList_sendIDsForRemoval, ref sendTextIDsForRemoval, DrawEntry_SendForRemoval);
        }
Beispiel #4
0
        private async void ButtonAdd_Click(object sender, RoutedEventArgs e)
        {
            var customer = TextCustomer.SelectedItem as MobileCustomer;

            if (customer != null)
            {
                var order = new MobileOrder
                {
                    Item               = TextOrder.Text,
                    MobileCustomerId   = customer.Id,
                    Quantity           = 1,
                    MobileCustomerName = customer.Name
                };

                await ordersTable.InsertAsync(order);

                orders.Insert(0, order);

                // clear the UI fields
                TextCustomer.SelectedIndex = -1;
                TextOrder.Text             = String.Empty;
                TextOrder.Focus(FocusState.Programmatic);
            }
        }
 public AlphanumericTextComparer(StringComparison stringComparison = StringComparison.CurrentCulture,
                                 TextOrder textOrder = TextOrder.FrontToBack)
 {
     _stringComparison = stringComparison;
     _textOrder        = textOrder;
 }