Пример #1
0
        private void btnUrediSifru_Click(object sender, EventArgs e)
        {
            if (dgv.RowCount > 0)
            {
                string broj = dgv.CurrentRow.Cells["Broj ponude"].Value.ToString();

                if (this.MainForm == null)
                {
                    frmPonude childForm = new frmPonude();
                    childForm.broj_fakture_edit = broj;
                    childForm.ShowDialog();
                    this.Close();
                }
                else
                {
                    MainForm.broj_fakture_edit = broj;
                    MainForm.Show();
                    this.Close();
                }
            }
            else
            {
                MessageBox.Show("Niste odabrali niti jednu stavku.", "Greška");
            }
        }
Пример #2
0
 private void novaPonudaToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         Ponude.Forme.frmPonude ponuda = new Ponude.Forme.frmPonude();
         ponuda.ShowDialog();
     }
     catch (Exception)
     {
         throw;
     }
 }