private void button2_Click(object sender, EventArgs e)
 {
     Encrypt enc = new Encrypt();
     Clan c = new Clan(enc.EncryptString(t_ime.Text + " " + t_prezime.Text), t_jmbg.Text, slika);
     DAL.DAL d = DAL.DAL.Instanca;
     d.kreirajKonekciju("localhost", "kladionica", "root", "");
     DAL.DAL.ClanDAO cd = new DAL.DAL.ClanDAO();
     c.DajIDClana = cd.create(c);
     d.terminirajKonekciju();
     MessageBox.Show("Član uspješno dodan!");
     this.Close();
 }
 public Kamera(Clan dc,Uposlenik up)
 {
     c = dc;
     o = up;
     InitializeComponent();
 }