Ejemplo n.º 1
0
        private void ValidateBeforeStartCountdown(Tuple <String, DateTime> data)
        {
            if (data.Item1 == "")
            {
                if (!Tommorow)
                {
                    Tommorow = true;
                }

                //parsing waktu
                var end = timeController.BuildDate($"{TimeHelper.GetTommorowDateWithUSFormat()} {waktuShalat.subuh}");

                LblNamaShalat.Text = "subuh";
                LblJam.Text        = waktuShalat.subuh;

                timeController.StartCountdown(end);

                CountDown.Start();
            }
            else
            {
                LblNamaShalat.Text = data.Item1;
                LblJam.Text        = data.Item2.ToString("HH:mm");

                DateTime EndTime = data.Item2;

                timeController.StartCountdown(EndTime);

                CountDown.Start();
            }
        }