public AbstractOsMappingWidget CreateSurface(SystemWindow childSystemWindow) { AbstractOsMappingWidget newSurface; switch (childSystemWindow.BitDepth) { case 24: case 32: newSurface = new WidgetForWindowsFormsOpenGL(childSystemWindow); break; default: throw new NotImplementedException(); } return newSurface; }
public AbstractOsMappingWidget CreateSurface(SystemWindow childSystemWindow) { AbstractOsMappingWidget newSurface; switch (childSystemWindow.BitDepth) { case 24: case 32: newSurface = new WidgetForWindowsFormsOpenGL(childSystemWindow); break; default: throw new NotImplementedException(); } return(newSurface); }