コード例 #1
0
 private void statisticsItemsUpdateAndShow(ListBox lbStatistics, statParams mySP)
 {
     lbStatistics.Items.Clear();
     lbStatistics.Items.Add(mySP.imgCnt.ToString());
     lbStatistics.Items.Add(mySP.validCnt.ToString());
     lbStatistics.Items.Add(mySP.invCnt.ToString());
     lbStatistics.Items.Add(mySP.reusedCnt.ToString());
     lbStatistics.Update();
 }
コード例 #2
0
 private void btnClear_Click(object sender, EventArgs e)
 {
     SP = new statParams();
     try
     {
         File.WriteAllText("codeline.txt", string.Empty);
     }
     catch
     {
         MessageBox.Show(
             "Cannot open file codeline.txt for writing",
             "Red Rose Scan-Solutions - MFS100",
             MessageBoxButtons.OK, MessageBoxIcon.Stop);
     }
     btnPrintList.Enabled = true;
     btnPrintList.Visible = true;
     btnPrintList.Show();
     lbEvents.Items.Clear();
     lbEvents.Update();
     statisticsItemsUpdateAndShow(lbStatistics, SP);
     MF.iOldDocId = 0;
 }
コード例 #3
0
        private void btnClear_Click(object sender, EventArgs e)
        {
            validated        = false;
            btnClear.Enabled = false;
            btnClear.Visible = false;
            btnClear.Hide();

            btnStartReading.Enabled = true;
            btnStartReading.Visible = true;
            btnStartReading.Show();

            btnSubmit.Enabled = false;
            btnSubmit.Visible = false;
            btnSubmit.Hide();

            totalValue = 0;
            dgwValidateScreen.Rows.Clear();
            MICR_status.Clear();
            SP = new statParams();
            statisticsItemsUpdateAndShow(lbStatistics, SP);
            rawBarcodes.Clear();
            rawImages.Clear();
            tempResults.Clear();
        }