Пример #1
0
        private void btnDodaj_Click(object sender, EventArgs e)
        {
            AgentDodajAzuriraj ag = new AgentDodajAzuriraj();

            if (ag.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                PopulateInfos();
            }
        }
Пример #2
0
        private void btnAzuriraj_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count == 0)
            {
                MessageBox.Show("Odaberite agenta!");
                return;
            }

            int agId = Int32.Parse(listView1.SelectedItems[0].SubItems[0].Text);

            AgentBasic         ab  = DTOManager.GetAgentBasic(agId);
            AgentDodajAzuriraj ada = new AgentDodajAzuriraj(ab);

            if (ada.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                PopulateInfos();
            }
        }