Пример #1
0
        private void btnCreateFWList_Click(object sender, EventArgs e)
        {
            // Check loading data before
            if (BLL_Process.isLoadingDataBefore)
            {
                //Check failed threshold textbox
                if (tbFailedThreshold.Text == "")
                {
                    MessageBox.Show("Please fill failed threshold!", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    tbFailedThreshold.Focus();
                    return;
                }

                // log4net
                _log.Info("-------------------------- Generate FW list--------------------------\n");

                int        failedThreshold = Int32.Parse(tbFailedThreshold.Text);
                GenerateFW frmGenerateFW   = new GenerateFW(failedThreshold);
                frmGenerateFW.ShowDialog();
            }
            else
            {
                MessageBox.Show("Please load data before!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Пример #2
0
        private void compareWithCanMatrixToolStripMenuItem_Click(object sender, EventArgs e)
        {
            GenerateFW frmGenerateFW = new GenerateFW(0);

            frmGenerateFW.ShowDialog();
        }