public FontEditorViewModel(FontsArc fonts) { _fonts = fonts; Fonts = new[] { new FontEntryViewModel(fonts.FontCmd), new FontEntryViewModel(fonts.FontHelp), new FontEntryViewModel(fonts.FontMenu), new FontEntryViewModel(fonts.FontMes), new FontEntryViewModel(fonts.FontNumeral) }; DrawingContext = new DrawingDirect3D(); DrawBegin = new RelayCommand(_ => { if (_selectedFont?.Font1 == null || SelectedCharacter == null) { return; } if (_surface1 == null) { CreateFontSurfaces(); } if (_surface1 == null) { return; } DrawingContext.Clear(Color.Black); PrintCharacter(SelectedCharacter); DrawingContext.Flush(); }); }
public CtdDrawHandler() { DrawingContext = new DrawingDirect3D(); }