public Window_Main()
        {
            // Instantiate the Controllers
            xboxControllers[0] = new Controller(this);
            xboxControllers[1] = new Controller(this);
            xboxControllers[2] = new Controller(this);
            xboxControllers[3] = new Controller(this);

            // Initialize the Form Components
            InitializeComponent();
        }
        public Receiver(Controller[] controller, Window_Main window)
        {
            // Stores the passed window as parentWindow for furtue use
            parentWindow = window;

            // Stores the passed Xbox controllers for future use
            xboxControllers[0] = controller[0];
            xboxControllers[1] = controller[1];
            xboxControllers[2] = controller[2];
            xboxControllers[3] = controller[3];
        }
        public Window_Main()
        {
            try
            {
                // Instantiate the Controllers
                xboxControllers[0] = new Controller(this);
                xboxControllers[1] = new Controller(this);
                xboxControllers[2] = new Controller(this);
                xboxControllers[3] = new Controller(this);
            }
            catch (VjoyNotEnabledException)
            {
                MessageBox.Show("Xbox 360 Wireless Chatpad could not be loaded.\n\nThe vJoy driver is not enabled or it is not installed. You can enable vJoy using the \"Configure vJoy\" tool or go to https://github.com/KytechN24/xbox360wirelesschatpad for more information on how to install and configure vJoy for this application.",
                    "Xbox 360 Wireless Chatpad Error",
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Error);
                Environment.Exit(1);
            }

            // Initialize the Form Components
            InitializeComponent();
        }