private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
        {
            var          worker       = sender as BackgroundWorker;
            CollectClass collectClass = new CollectClass();

            _countYears = new Dictionary <string, string>();
            _countYears.Clear();
            _countYears = collectClass.Cyears();

            _countDefectsYears = new Dictionary <string, string>();
            _countDefectsYears.Clear();
            _countDefectsYears = collectClass.Cdyears();

            _countMonths = new Dictionary <string, string>();
            _countMonths.Clear();
            _countMonths = collectClass.Cmonths();

            _countDefectsMonths = new Dictionary <string, string>();
            _countDefectsMonths.Clear();
            _countDefectsMonths = collectClass.Cdmonths();

            _countDays = new Dictionary <string, string>();
            _countDays.Clear();
            _countDays = collectClass.Cdays();

            _countDefectsDays = new Dictionary <string, string>();
            _countDefectsDays.Clear();
            _countDefectsDays = collectClass.Cddays();

            _countSmens = new Dictionary <string, string>();
            _countSmens.Clear();
            _countSmens = collectClass.Csmens();

            _countDefectsSmens = new Dictionary <string, string>();
            _countDefectsSmens.Clear();
            _countDefectsSmens = collectClass.Cdsmens();

            _countParts = new Dictionary <string, string>();
            _countParts.Clear();
            _countParts = collectClass.Cparts();

            _countDefectsParts = new Dictionary <string, string>();
            _countDefectsParts.Clear();
            _countDefectsParts = collectClass.cdparts();
        }
Exemple #2
0
        private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
        {
            var worker = sender as BackgroundWorker;
            CollectClass collectClass = new CollectClass();

            _countYears = new Dictionary<string, string>();
            _countYears.Clear();
            _countYears = collectClass.Cyears();

            _countDefectsYears = new Dictionary<string, string>();
            _countDefectsYears.Clear();
            _countDefectsYears = collectClass.Cdyears();

            _countMonths = new Dictionary<string, string>();
            _countMonths.Clear();
            _countMonths = collectClass.Cmonths();

            _countDefectsMonths = new Dictionary<string, string>();
            _countDefectsMonths.Clear();
            _countDefectsMonths = collectClass.Cdmonths();

            _countDays = new Dictionary<string, string>();
            _countDays.Clear();
            _countDays = collectClass.Cdays();

            _countDefectsDays = new Dictionary<string, string>();
            _countDefectsDays.Clear();
            _countDefectsDays = collectClass.Cddays();

            _countSmens = new Dictionary<string, string>();
            _countSmens.Clear();
            _countSmens = collectClass.Csmens();

            _countDefectsSmens = new Dictionary<string, string>();
            _countDefectsSmens.Clear();
            _countDefectsSmens = collectClass.Cdsmens();

            _countParts = new Dictionary<string, string>();
            _countParts.Clear();
            _countParts = collectClass.Cparts();

            _countDefectsParts = new Dictionary<string, string>();
            _countDefectsParts.Clear();
            _countDefectsParts = collectClass.cdparts();
        }