コード例 #1
0
ファイル: frmShow.cs プロジェクト: junindar/Projas
        private void tmrCountDown_Tick(object sender, EventArgs e)
        {
            TimeSpan ts = Convert.ToDateTime(strTime).Subtract(DateTime.Now);

            lblCountDown.Text = _strSholat + " - " + ts.ToString("hh':'mm':'ss");
            if (lblCountDown.Text == _strSholat + " - 00:01:40")
            {
                TopMost = false;
                var frm = new frmIqomah
                {
                    iCountDown = 100, DurasiIqomah = iIqomah, NamaSholat = _strSholat, TopMost = true
                };
                frm.ShowDialog();
                countDownSholat();
            }
        }
コード例 #2
0
ファイル: frmShow.cs プロジェクト: junindar/Projas
        private void testToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                TopMost = false;
                var frm = new frmIqomah();
                frm.iCountDown   = 5;
                frm.DurasiIqomah = iIqomah;
                frm.NamaSholat   = _strSholat;
                // frm.TopMost = true;
                frm.ShowDialog();
                countDownSholat();

                TopMost = false;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }