Exemplo n.º 1
0
        private void btnProviderKey_Click(object sender, EventArgs e)
        {
            lvLog.Items.Clear();
            MainWorker mw = new MainWorker(cmbProvider.SelectedItem.ToString());

            mw.StatusChanged += new MainWorker.OnStatusChanged(mw_StatusChanged);
            if (!mw.WorkerInit())
            {
                return;
            }
            mw.StartGetProviderKey();
        }
Exemplo n.º 2
0
        private void btnDeleteAllData_Click(object sender, EventArgs e)
        {
            DialogResult Ans = MessageBox.Show("Удалить данные всех провайдеров?",
                                               "Удаление данных", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (Ans == DialogResult.No)
            {
                return;
            }

            lvLog.Items.Clear();
            MainWorker mw = new MainWorker(cmbProvider.SelectedItem.ToString());

            mw.StatusChanged += new MainWorker.OnStatusChanged(mw_StatusChanged);
            mw.StartRemoveAllProviderData();
        }