Exemplo n.º 1
0
        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();
        }
Exemplo n.º 3
0
        private void BtnPlus_Click(object sender, EventArgs e)
        {
            var formAdd = new FormMalEtrafli();

            formAdd.Show();
        }