Esempio n. 1
0
        private void InfoSpectacol_Click(object sender, MouseButtonEventArgs e)
        {
            Spectacol s = view.getSpectacol();

            if (s != null)
            {
                List <DistributieOp> l_distributie_op = spectacolRepo.getActoriOp(s);
                string str = s.ToString();

                if (l_distributie_op.Count != 0)
                {
                    str += "\n\nDistributie\n";

                    foreach (DistributieOp d in l_distributie_op)
                    {
                        str = str + "Actor: " + d.NumeActor + ", Rol: " + d.RolActor + "\n";
                    }
                    view.showMessage(str);
                }
                else
                {
                    List <DistributieBalet> l_distributie_balet = spectacolRepo.getActoriBalet(s);

                    str += "\n\nDistributie\n";

                    foreach (DistributieBalet d in l_distributie_balet)
                    {
                        str = str + d.NumeActor + "\n";
                    }
                    view.showMessage(str);
                }
            }
        }