示例#1
0
        private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
        {
            Threading.CurrentState state = (Threading.CurrentState)e.UserState;
            form2.SetCount(state.LinesCounted);
            int df = 34;

            if (form2.SendCancelMessage() == true)
            {
                CancelIt();
            }
            // toolStripStatusLabel2.Text = "Lines: " + state.LinesCounted.ToString();
            DataStorage            = state.DataStorage;
            dataGridView1.RowCount = state.DataStorage.Count / columns;
        }