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 button8_Click(object sender, EventArgs e) { if (radioButton4.Checked) { DataGridView datagrid = new DataGridView(); Netsis netsis = new Netsis(datagrid); netsis.netsis(datagrid); } else { } SorunluFis sorunlufis = new SorunluFis(); sorunlufis.Show(); }