Example #1
0
        public static RenderHost GetHost(int screenIndex = 0)
        {
            if (!_hosts.ContainsKey(screenIndex))
            {
                MainUIInvoke(() =>
                {
                    var host = _hosts[screenIndex] = new RenderHost(screenIndex);
                    host.Show();
                });
            }

            return(_hosts[screenIndex]);
        }
        public static RenderHost GetHost(int screenIndex = 0)
        {
            if (!_hosts.ContainsKey(screenIndex))
            {
                RenderHost result = null;
                UIInvoke(() =>
                {
                    result = new RenderHost(screenIndex);
                });
                return(result);
            }

            return(_hosts[screenIndex]);
        }