Exemple #1
0
        private void projects_Click(object sender, EventArgs e)
        {
            this.Hide();
            ListProjects listProjects = new ListProjects(this);

            listProjects.Show();
        }
Exemple #2
0
        public ListAddProject(ListProjects listProjects)
        {
            this.listProjects = listProjects;
            this.listProjects.game.storyGoOn += storyShow;
            this.listProjects.game.loseGame  += loseGame;
            InitializeComponent();
            this.BackgroundImage = listProjects.BackgroundImage;
            int i = 0;

            //We draw the projects which are proposed
            foreach (Project project in listProjects.ListProject)
            {
                AfficheProject afficheProject = new AfficheProject(false, project, this);
                afficheProject.Location = new Point(0, i * 155);
                afficheProject.TopLevel = false;
                i++;
                afficheProject.Show();
                this.pnList.Controls.Add(afficheProject);
            }
            pnList.Size = new Size(370, 300);
        }