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

            index = 0;

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

            istoricClient = new VizualizareIstoric((Client)clienti[index], "admin");
            istoricClient.setListaConturiWindow(this);
            istoricClient.Show();
        }
 private void IstoricCumparaturi_Click(object sender, RoutedEventArgs e)
 {
     istoricWindow = new VizualizareIstoric(client, "client");
     istoricWindow.Show();
 }