Example #1
0
        private void BCK_WRK_CHCK_DEL_DoWork(object sender, DoWorkEventArgs e)
        {
            Check_File ch = new Check_File();

            Invoke(new Action(() => ch.Check_DEL(path_DEL, Delimited_Char(), out malf1, out malf1_comu, Header_set())));
            Invoke(new Action(() => ch.CreateLOG(malf1_comu, path_DEL, out log_path, Header_set())));
            Invoke(new Action(() => malform_shower_DEL()));
        }
Example #2
0
        private void BCK_WRK_CHCK_TXT_DoWork(object sender, DoWorkEventArgs e)
        {
            Loading    L  = new Loading();
            Check_File ch = new Check_File();

            if (!Int32.TryParse(txtLineLong.Text, out int cos))
            {
                MessageBox.Show("Please enter Record Length");
            }
            else
            {
                Invoke(new Action(() => this.Hide()));
                Invoke(new Action(() => L.Show()));
                Invoke(new Action(() => L.Label_show_inf.Text = "Your file is being checked"));
                Invoke(new Action(() => ch.Check_SEQ(path_SEQ, cos, out malf2, out malf2_comu, L.progressBar1)));
                Invoke(new Action(() => ch.CreateLOG(malf2_comu, path_SEQ, out log_path)));
                Invoke(new Action(() => L.Close()));
                Invoke(new Action(() => malform_shower_SEQ()));
                Invoke(new Action(() => this.Show()));
                Invoke(new Action(() => Btn_Check_Malf_SEQ.Enabled = false));
            }
        }