private void FrmPcStokGoruntule_Load(object sender, EventArgs e) { gcPcStok.Visible = true; PcFonk pcF = new PcFonk(); pcF.PcStokGoruntule(gcPcStok); }
private void sbPcEkle_Click(object sender, EventArgs e) { PcFonk pc = new PcFonk(); PcModel pcM = new PcModel(); pcM.Adi = txtPcAdi.Text; pcM.Fiyat = Convert.ToInt32(txtPcFiyat.Text); pcM.Firma = txtPcFirma.Text; pcM.Alinan_Tarih = Convert.ToDateTime(txtPcTarih.Text); pcM.Stok_Durumu = Convert.ToInt32(cbPcStok.Text); pcM.Marka = txtPcMarka.Text; pcM.Model = txtPcModel.Text; pcM.Not = txtPcNot.Text; pc.PcEkle(pcM); XtraMessageBox.Show("Ekleme İşlemi Tamamlandı!", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information); }