Ejemplo n.º 1
0
        private void btRepeat_Click(object sender, EventArgs e)
        {
            string sText = ((Button)sender).Text;

            Log.Trace(m_sActrName, sText + " Button Clicked", ti.Frm);

            int iSelNo = Convert.ToInt32(lbCylNo.Text);

            if (lbCylNo.Text != "" && !bActivate[iSelNo])
            {
                ML.CL_GoRpt(1000, iSelNo);
                bActivate[iSelNo] = true;
            }
            else if (bActivate[iSelNo])
            {
                ML.CL_StopRpt();
                bActivate[iSelNo] = false;
            }
        }
Ejemplo n.º 2
0
        private void btRepeat_Click(object sender, EventArgs e)
        {
            string sText = ((Button)sender).Text;

            Log.Trace(m_sActrName + "_" + sText + " Button Clicked", ForContext.Frm);

            int iSelNo = Convert.ToInt32(lbCylNo.Text);
            int iRptTm = CConfig.StrToIntDef(textBox1.Text);

            if (lbCylNo.Text != "" && !bActivate[iSelNo])
            {
                ML.CL_GoRpt(iRptTm, iSelNo);
                bActivate[iSelNo] = true;
            }
            else if (bActivate[iSelNo])
            {
                ML.CL_StopRpt();
                bActivate[iSelNo] = false;
            }
        }