public DisplayForm(Controller o)
        {
            controller = o;
            /*Icon Setup
            try
            {
                var bitmap = new Bitmap("icon.png");
                var iconHandle = bitmap.GetHicon();
                var icon = System.Drawing.Icon.FromHandle(iconHandle);
                Icon = new Icon(icon, 32, 32);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
                Environment.Exit(1);
            }*/

            InitializeComponent();
            Set_Quantum(controller.time_quantum);
        }
        static void Main(string[] args)
        {
            var _this = new Controller();

            if (args.Length != 2)
            {
                Console.WriteLine("Program requires arguments consisting of a config file " +
                "with initialization values and a time quantum value.");
                Console.WriteLine("Usage: JobSchedSimulator.exe [input file] [quantum number]");
                Environment.Exit(1);
            }
            try
            {
                StreamReader fileReader;
                String line;
                _this.time_quantum = int.Parse(args[1]);
                fileReader = File.OpenText(args[0]);
                line = fileReader.ReadLine();
                string[] input_values;
                Process temp;
                int i;
                int process_id = 1;
                while (line != null)
                {
                    input_values = line.Split(new string[1] { " " }, StringSplitOptions.RemoveEmptyEntries);
                    temp = new Process();
                    temp.process_id = process_id;
                    temp.arrival_time = int.Parse(input_values[0]);
                    temp.num_cpu_bursts = int.Parse(input_values[1]);

                    for (i = 2; i < input_values.Length; i++)
                    {
                        if (i % 2 == 0)
                            temp.AddCpuBurst(int.Parse(input_values[i]));
                        else
                            temp.AddIoBurst(int.Parse(input_values[i]));
                    }

                    _this.process_List.Add(temp);
                    process_id++;
                    line = fileReader.ReadLine();
                }

                fileReader.Close();
            }
            catch (IOException e)
            {
                Console.WriteLine("Could Not Open file");
                Console.WriteLine(e.Message);
                Environment.Exit(1);
            }
            catch (Exception e)
            {
                Console.WriteLine("Malformed input");
                Console.WriteLine(e.Message);
                Environment.Exit(1);
            }
            _this.Populate_Event_List();
            _this.gui = new DisplayForm(_this);
            Application.Run(_this.gui);
        }