예제 #1
0
 public WPFDriverCreator(CodeDomProvider dom)
 {
     _dom = dom;
     _customNameGenerator   = new DriverElementNameGeneratorAdaptor(dom);
     _driverTypeNameManager = new DriverTypeNameManager(DriverCreatorAdapter.SelectedNamespace, DriverCreatorAdapter.TypeFullNameAndWindowDriver, DriverCreatorAdapter.TypeFullNameAndUserControlDriver);
 }
        public string CreateDriverClassName(object coreObj)
        {
            var driverTypeNameManager = new DriverTypeNameManager(DriverCreatorAdapter.SelectedNamespace, DriverCreatorAdapter.TypeFullNameAndWindowDriver, DriverCreatorAdapter.TypeFullNameAndUserControlDriver);

            return(driverTypeNameManager.MakeDriverType(coreObj, out var _));
        }