protected void bttOsebaPodrobnosti_Click(object sender, EventArgs e)
 {
     GridViewOseba.Enabled = true;
     localhost.Oseba[] oseba = services.getOsebeAll();
     GridViewOseba.DataSource = oseba;
     GridViewOseba.DataBind();
     Session["ImeOsebePodrobnosti"] = true;
 }
    protected void bttUrediOsebo_Click(object sender, EventArgs e)
    {
        Session["UrediOsebo"] = true;
        GridViewOseba.Enabled = true;

        localhost.Oseba[] oseba = services.getOsebeAll();
        GridViewOseba.DataSource = oseba;
        GridViewOseba.DataBind();
    }
    protected void bttvseosebePodjetje_Click(object sender, EventArgs e)
    {
        Session["OsebaVPod"]  = true;
        GridViewOseba.Enabled = true;
        GridViewOseba.Visible = true;
        if (GridViewPodjetje.Enabled)
        {
            GridViewPodjetje.Visible = false;
        }


        localhost.Oseba[] oseba = services.getOsebeAll();
        GridViewOseba.DataSource = oseba;
        GridViewOseba.DataBind();
    }
    protected void bttOdstraniOseboIzPodjetja_Click(object sender, EventArgs e)
    {
        GridViewOseba.Enabled    = true;
        GridViewPodjetje.Enabled = true;
        GridViewOseba.Visible    = true;
        GridViewPodjetje.Visible = true;

        Session["OdstraniOseboIzPodjetja"] = true;
        Session["OsebaVPod"] = true;
        localhost.Oseba[] oseba = services.getOsebeAll();
        GridViewOseba.DataSource = oseba;
        GridViewOseba.DataBind();

        localhost.Podjetje[] podjetje = services.getPodjetjeAll();

        GridViewPodjetje.DataSource = podjetje;
        GridViewPodjetje.DataBind();
    }
    protected void bttDodajOseboVPodjetje_Click(object sender, EventArgs e)
    {
        GridViewPodjetje.Visible = true;
        GridViewOseba.Visible    = true;
        GridViewPodjetje.Enabled = true;
        GridViewOseba.Enabled    = true;
        txtBDatumDo.Enabled      = true;
        txtBDelovnoMesto.Enabled = true;

        localhost.Oseba[] oseba = services.getOsebeAll();
        GridViewOseba.DataSource = oseba;
        GridViewOseba.DataBind();

        localhost.Podjetje[] podjetje = services.getPodjetjeAll();

        GridViewPodjetje.DataSource = podjetje;
        GridViewPodjetje.DataBind();
        Session["DodajOseboVPodjetje"] = true;
    }