private void shtoFurnitorButton_Click(object sender, EventArgs e) { DataController dataController = new DataController(); string emri = EmriFurnitortextBox.Text; if (dataController.ShtoFurnitor(emri)) { if (MessageBox.Show("Furnitori u shtua") == DialogResult.OK) { this.Close(); FurnitorForm furnitor = new FurnitorForm(); furnitor.Show(); } } else { MessageBox.Show("Furnitori nuk u shtua"); } }
private void EditFurnitorButton_Click(object sender, EventArgs e) { DataController dataController = new DataController(); furnitor.Emri = this.FurnitorEmriBox.Text; if (dataController.editFurnitor(furnitor)) { if (MessageBox.Show("Furnitori u modifikua") == DialogResult.OK) { this.Close(); FurnitorForm furnitorForm = new FurnitorForm(); furnitorForm.Show(); } } else { if (MessageBox.Show("Furnitori nuk u modifikua") == DialogResult.OK) { this.Close(); FurnitorForm furnitorForm = new FurnitorForm(); furnitorForm.Show(); } } }
private void FurnitorButton_Click(object sender, EventArgs e) { FurnitorForm furnitor = new FurnitorForm(); furnitor.Show(); }