private async void BtnEdit_Click(object sender, EventArgs e) { var id = GetSelectedItemId(); if (id == 0) { return; } using var context = new AppDbContext(); var product = await context.Products.FirstOrDefaultAsync(p => p.Id == id); var formEdit = new FormMalEtrafli(product); formEdit.Show(); }
private void BtnYeniMal_Click(object sender, EventArgs e) { var formYeniMal = new FormMalEtrafli(); formYeniMal.Show(); }
private void BtnPlus_Click(object sender, EventArgs e) { var formAdd = new FormMalEtrafli(); formAdd.Show(); }