private void modifConturi_Click(object sender, RoutedEventArgs e)
        {
            Button b = (Button)sender;

            index = 0;

            for (int i = 0; i < conturi.Count && index == 0; i++)
            {
                if (b.Name == "btnCont" + i.ToString())
                {
                    index = i;
                }
            }

            modificareCont = new AddModifyCont((Cont)conturi[index], (Client)clienti[index], "admin");
            modificareCont.setListaConturiWindow(this);
            modificareCont.Show();
        }
Ejemplo n.º 2
0
 private void createCont_Click(object sender, RoutedEventArgs e)
 {
     cont = new AddModifyCont();
     cont.Show();
 }
 private void UpdateProfil_Click(object sender, RoutedEventArgs e)
 {
     contWindow = new AddModifyCont(cont, client, "client");
     contWindow.setClientWindow(this);
     contWindow.Show();
 }