예제 #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;
            }
        }
예제 #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;
            }
        }