Exemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();
            computerManager = new ComputerManager();
            //computers = computerManager.computers;
            computerManager.computers.Add(new Computer("Computer1", new Dictionary <int, string>(), 0, true));
            computerManager.computers.Add(new Computer("Computer2", new Dictionary <int, string>(), 0, false));
            computerManager.computers.Add(new Computer("Computer3", new Dictionary <int, string>(), 0, true));
            computerManager.computers.Add(new Computer("Computer4", new Dictionary <int, string>(), 0, true));
            computerManager.computers.Add(new Computer("Computer5", new Dictionary <int, string>(), 0, true));
            computerManager.computers[0].tasks[0] = computerManager.taskslist[2];
            computerManager.computers[1].tasks[0] = computerManager.taskslist[1];
            computerManager.computers[1].tasks[1] = computerManager.taskslist[2];
            computerManager.computers[2].tasks[0] = computerManager.taskslist[3];
            computerManager.computers[3].tasks[0] = computerManager.taskslist[4];
            computerManager.computers[4].tasks[0] = computerManager.taskslist[3];
            computerManager.computers[4].tasks[1] = computerManager.taskslist[1];

            initForm();
        }
Exemplo n.º 2
0
 public AddTask()
 {
     InitializeComponent();
     computerManager = new ComputerManager();
 }