private async void ClearVal(string v1, string v2, string v3, string v4) { TxtTime.Clear(); TxtTime.Focus(); bool BlinkOn = true; int i; for (i = 0; i < 5; i++) { await Task.Delay(120); LblDays.FontSize = 55; if (BlinkOn) { LblDays.Content = v1; LblHrs.Content = v2; LblMins.Content = v3; LblSecs.Content = v4; BlinkOn = false; } else { LblDays.Content = " "; LblHrs.Content = " "; LblMins.Content = " "; LblSecs.Content = " "; BlinkOn = true; } } }
private void InitComponent() { try { TxtSave = FindViewById <TextView>(Resource.Id.toolbar_title); TxtSave.Text = GetText(Resource.String.Lbl_Save); LayoutImage = FindViewById <LinearLayout>(Resource.Id.LayoutImage); LayoutImage.Visibility = ViewStates.Gone; IconDiscountType = FindViewById <TextView>(Resource.Id.IconDiscountType); TxtDiscountType = FindViewById <EditText>(Resource.Id.DiscountTypeEditText); MRecycler = FindViewById <RecyclerView>(Resource.Id.Recyler); MRecycler.Visibility = ViewStates.Gone; IconDiscountItems = FindViewById <TextView>(Resource.Id.IconDiscountItems); TxtDiscountItems = FindViewById <EditText>(Resource.Id.DiscountItemsEditText); IconCurrency = FindViewById <TextView>(Resource.Id.IconCurrency); TxtCurrency = FindViewById <EditText>(Resource.Id.CurrencyEditText); IconDescription = FindViewById <TextView>(Resource.Id.IconDescription); TxtDescription = FindViewById <EditText>(Resource.Id.DescriptionEditText); IconDate = FindViewById <TextView>(Resource.Id.IconDate); TxtDate = FindViewById <EditText>(Resource.Id.DateEditText); IconTime = FindViewById <TextView>(Resource.Id.IconTime); TxtTime = FindViewById <EditText>(Resource.Id.TimeEditText); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, IconDiscountType, FontAwesomeIcon.User); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, IconDiscountItems, FontAwesomeIcon.MapMarkedAlt); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, IconCurrency, FontAwesomeIcon.DollarSign); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, IconDescription, FontAwesomeIcon.Paragraph); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, IconDate, FontAwesomeIcon.CalendarAlt); FontUtils.SetTextViewIcon(FontsIconFrameWork.FontAwesomeLight, IconTime, FontAwesomeIcon.Clock); Methods.SetColorEditText(TxtDiscountType, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(TxtDiscountItems, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(TxtCurrency, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(TxtDescription, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(TxtDate, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetColorEditText(TxtTime, AppSettings.SetTabDarkTheme ? Color.White : Color.Black); Methods.SetFocusable(TxtDiscountType); Methods.SetFocusable(TxtCurrency); Methods.SetFocusable(TxtDate); Methods.SetFocusable(TxtTime); TxtDate.SetOnClickListener(this); TxtTime.SetOnClickListener(this); } catch (Exception e) { Console.WriteLine(e); } }