Exemplo n.º 1
0
        private void FillOverlays()
        {
            AddTab(OverlayFactory.GetOverlaysNotInTypes(new[] { typeof(OverlayRepeater), typeof(OverlayPath) })
                   .Where(t => t != typeof(OverlayFlag) && t != typeof(OverlayImage))
                   .Select(o => OverlayFactory.GetInstance(o, _defaultMaximumX, _defaultMaximumY)), strings.Shapes);

            var emblems    = OverlayFactory.GetOverlaysByType(typeof(OverlayPath)).Select(o => OverlayFactory.GetInstance(o, _defaultMaximumX, _defaultMaximumY));
            var custom     = OverlayFactory.CustomTypes.Select(o => o.Value);
            var allEmblems = emblems.Union(custom).OrderBy(o => o.DisplayName);

            AddTab(allEmblems, strings.Emblems);

            AddTab(OverlayFactory.GetOverlaysByType(typeof(OverlayRepeater))
                   .Select(o => OverlayFactory.GetInstance(o, _defaultMaximumX, _defaultMaximumY))
                   .Union(new Overlay[]
            {
                new OverlayFlag(_defaultMaximumY, _defaultMaximumY),
                new OverlayImage(string.Empty, string.Empty, _defaultMaximumX, _defaultMaximumX)
            }), strings.Special);
        }