Ejemplo n.º 1
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            _CityRepository.UpdateCityDb(GradId.ToString(), inputNazivGrada.Text);
            DataGridView dataGridView = (DataGridView)this.GlavnaForma.Controls[6];

            bindingSource.DataSource = _CityRepository.DohvatiGradoveDb();
            dataGridView.DataSource  = bindingSource;
            //Console.WriteLine(GlavnaForma.Controls[6]);
            this.Close();
        }
Ejemplo n.º 2
0
        private void btnObrisi_Click(object sender, EventArgs e)
        {
            _CityRepository.BrisanjeGradaDb(GradId);
            DataGridView dataGridView = (DataGridView)this.GlavnaForma.Controls[6];

            bindingSource.DataSource = _CityRepository.DohvatiGradoveDb();
            dataGridView.DataSource  = bindingSource;
            //Console.WriteLine(GlavnaForma.Controls[6]);
            this.Close();
        }
Ejemplo n.º 3
0
 public MainForm()
 {
     InitializeComponent();
     _BindingSource.DataSource = _CityRepository.DohvatiGradoveDb();
 }