示例#1
0
        private void employees_Click(object sender, EventArgs e)
        {
            this.Hide();
            ListEmployees listEmployee = new ListEmployees(this);

            listEmployee.Show();
        }
示例#2
0
        public ListAddEmployee(ListEmployees listEmployees)
        {
            this.listEmployees = listEmployees;
            this.listEmployees.game.storyGoOn += storyShow;
            listEmployees.game.loseGame       += loseGame;
            InitializeComponent();
            this.BackgroundImage = listEmployees.BackgroundImage;
            int i = 0;

            //Draw the list of the candidates
            foreach (Employee employee in listEmployees.ListPerson)
            {
                AfficheEmployee afficheEmployee = new AfficheEmployee(0, employee, this);
                afficheEmployee.TopLevel = false;
                afficheEmployee.Location = new Point(0, i * 100);
                i++;
                afficheEmployee.Show();
                this.pnlList.Controls.Add(afficheEmployee);
            }
            pnlList.Size = new Size(300, 300);
        }