private void btnProductAdd_Click(object sender, EventArgs e) { this.Hide(); AddForm addForm = new AddForm(Type.Product, ID); addForm.ShowDialog(); }
private void button3_Click(object sender, EventArgs e) { //prodat proizvod this.Hide(); AddForm addForm = new AddForm(Type.ProductSold, ID); addForm.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { //dodaj Zaposlenog this.Hide(); AddForm addForm = new AddForm(Type.Employee, ID); addForm.ShowDialog(); }
private void button9_Click(object sender, EventArgs e) { if (radioButton1.Checked) { if (textBox1.Text != "") { if (DataProviders.MarketProvider.GetMarket(this.textBox1.Text) != null) { this.Hide(); Form1 forma = new Form1(this.textBox1.Text); forma.ShowDialog(); } else { textBox1.Text = ""; MessageBox.Show("Ne postoji trazeni market"); } } else { MessageBox.Show("Nije popunjeno polje ID"); } } else if (radioButton2.Checked) { this.Hide(); AddForm addForm = new AddForm(Type.Market, null); addForm.ShowDialog(); } else { if (textBox1.Text != "") { if (DataProviders.MarketProvider.DeleteMarket(textBox1.Text)) { MessageBox.Show("Izbrisan market"); } else { MessageBox.Show("Ne postoji trazeni market u bazi"); } textBox1.Text = ""; } else { MessageBox.Show("Nije popunjeno polje ID"); } } }