Skip to content

Commit

Permalink
küçük düzeltmeler
Browse files Browse the repository at this point in the history
  • Loading branch information
0xD3N1Z committed Oct 20, 2023
1 parent fd60245 commit abded47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KKTCMB/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private void ParseHTML(string content)

var culture = new CultureInfo("tr-TR", false);
dataGridView.Rows.Add(birim[0], IsoMap.GetISOCode(birim[1]), culture.TextInfo.ToTitleCase(birim[1].ToLower(culture)),
sadeceEf ? "" : chunks[1], sadeceEf ? "" : chunks[2], chunks.ElementAtOrDefault(sadeceEf ? 1 : 3), chunks.ElementAtOrDefault(sadeceEf ? 2 : 4));
sadeceEf ? "" : chunks[1], sadeceEf ? "" : chunks[2], chunks.ElementAtOrDefault(sadeceEf ? 1 : 3) ?? "", chunks.ElementAtOrDefault(sadeceEf ? 2 : 4) ?? "");
}

saveButton.Enabled = true;
Expand Down Expand Up @@ -191,7 +191,7 @@ private async void saveButton_Click(object sender, EventArgs e)

foreach (DataGridViewRow row in dataGridView.Rows) {
var command = new SqlCeCommand("INSERT INTO kktcmb (tarih, kaynak, siralama, birim, sembol, isim, doviz_alis, doviz_satis, efektif_alis, efektif_satis) " +
$"VALUES ('{dateTimePicker.Value:yyyy-MM-dd}', {(int)currentSource}, {row.Index}, {row.Cells[0].Value}, '{row.Cells[1].Value}', '{row.Cells[2].Value}', {row.Cells[3].Value}, {row.Cells[4].Value}, {row.Cells[5].Value}, {row.Cells[6].Value})",
$"VALUES ('{dateTimePicker.Value:yyyy-MM-dd}', {(int)currentSource}, {row.Index}, {row.Cells[0].Value}, '{row.Cells[1].Value}', '{row.Cells[2].Value}', '{row.Cells[3].Value}', '{row.Cells[4].Value}', '{row.Cells[5].Value}', '{row.Cells[6].Value}')",
connection);

await command.ExecuteNonQueryAsync();
Expand Down

0 comments on commit abded47

Please sign in to comment.