Beispiel #1
0
 public GlyphFactoryInfo(int order, HexGlyphFactory factory, HexGlyphFactoryProvider glyphFactoryProvider)
 {
     Order           = order;
     Factory         = factory ?? throw new ArgumentNullException(nameof(factory));
     FactoryProvider = glyphFactoryProvider ?? throw new ArgumentNullException(nameof(glyphFactoryProvider));
     Canvas          = new Canvas {
         Background = Brushes.Transparent
     };
 }
Beispiel #2
0
			public GlyphFactoryInfo(int order, HexGlyphFactory factory, HexGlyphFactoryProvider glyphFactoryProvider) {
				if (factory == null)
					throw new ArgumentNullException(nameof(factory));
				if (glyphFactoryProvider == null)
					throw new ArgumentNullException(nameof(glyphFactoryProvider));
				Order = order;
				Factory = factory;
				FactoryProvider = glyphFactoryProvider;
				Canvas = new Canvas { Background = Brushes.Transparent };
			}