private void button2_Click(object sender, EventArgs e) { if (comboBox1.SelectedIndex == 0) { Netsis netsis = new Netsis(dataGridView1); netsis.netsis(dataGridView1); } if (comboBox1.SelectedIndex == 1) { UtilityClass uObject = new UtilityClass(); var connection = uObject.CreateOleDbConnection(); var mainDataTable = uObject.ExcelToDataTable(connection); var lucaObject = uObject.ClassSwitcherRelatedToColumnNumber(mainDataTable, dataGridView1, connection); mainDataTable = lucaObject.DataTableForNColumn(); uObject.SetMainDataTableVariable(mainDataTable); } if (comboBox1.SelectedIndex == 2) { LogoAccountingFront logoAccounting = new LogoAccountingFront(); logoAccounting.logoAccountingFront(dataGridView1); } if (comboBox1.SelectedIndex == 3) { LogoGeneral logoGeneral = new LogoGeneral(dataGridView1); } GC.Collect(); label3.Text = "Firma Adı : " + variables.FirmaAdi; }
private void button13_Click(object sender, EventArgs e) { if (radioButton1.Checked) { DataGridView datagrid = new DataGridView(); UtilityClass uObject = new UtilityClass(); var connection = uObject.CreateOleDbConnection(); var mainDataTable = uObject.ExcelToDataTable(connection); var lucaObject = uObject.ClassSwitcherRelatedToColumnNumber(mainDataTable, datagrid, connection); mainDataTable = lucaObject.DataTableForNColumn(); uObject.SetMainDataTableVariable(mainDataTable); } else { } Yaslandirma yaslandirma = new Yaslandirma(); yaslandirma.Show(); }