Exemplo n.º 1
0
        /// <summary>
        ///   <para>
        ///  Handles the LostFocus event of the ProductPriceTextBox control.
        /// </para>
        ///   <para>Shows the price for the current service</para>
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
        private async void ProductPriceTextBox_LostFocus(object sender, RoutedEventArgs e)
        {
            try
            {
                PrintHelper.FixPriceText(ProductPriceTextBox);

                await Task.FromResult(true);
            }
            catch (Exception ex)
            {
                Log.Error(ex, "Unexpected Error");
            }
        }