コード例 #1
0
        private void buttonSaveData_Click(object sender, EventArgs e)
        {
            log.Info("buttonSaveData_Click");

            buttonSaveData.Invoke(new Action(() =>
            {
                log.Info("buttonSaveData.Invoke");

                buttonOpenExcel.Enabled = false;
                buttonDownloadFile.Enabled = false;
                buttonSaveData.Enabled = false;

                log.Info("button disabled");

                this.formLoad = new FormLoad();

                Model.InsertData(dataSet.Tables[tableName], (this.comboBoxSupplier.SelectedItem as ComboboxItem).Value.ToString(), comboBoxImportCurrency.Text);

                log.Info("Model.InsertData was finished");

                this.dataGrid_import_excel.DataSource = null;
                this.dataGrid_import_excel.Rows.Clear();
                dataSet.Tables[tableName].Clear();
                lbl_Counter.Text = "0";
                lbl_TotalCount.Text = "0";
                label_TimeSpan.Text = "";
                log.Info("Clear grid");

                this.formLoad.ShowDialog();
            }));
        }
コード例 #2
0
 private void PriceUploader_Shown(object sender, EventArgs e)
 {
     formLoad = new FormLoad();
     formLoad.ShowDialog();
 }