/* --------------------------------------- MAGIC START - METHODS ------------------------------------------- */
        private void OnResizeMessage()
        {
            int width  = csu.GetAreaWidth();
            int height = csu.GetAreaHeight();

            if (width != -1 && height != -1)
            {
                this.Dispatcher.Invoke(new ResizeGridDelegate(this.ResizeGrid), new object[] { height, width });
                this.Dispatcher.Invoke(new InitGridDelegate(grid.InitFactoryGrid), new object[] { csu.GetFactory() });
            }
        }