本文整理汇总了C#中IViewFactory类的典型用法代码示例。如果您正苦于以下问题:C# IViewFactory类的具体用法?C# IViewFactory怎么用?C# IViewFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IViewFactory类属于命名空间,在下文中一共展示了IViewFactory类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: BindableLayoutInflater
public BindableLayoutInflater(IViewFactory factory, Context context)
: base(context)
{
Should.NotBeNull(factory, "factory");
_viewFactory = factory;
Initialize();
}
开发者ID:sami1971,项目名称:MugenMvvmToolkit,代码行数:7,代码来源:BindableLayoutInflater.cs
示例2: ContactsModuleViewModel
public ContactsModuleViewModel(IViewFactory viewFactory)
{
Contract.Requires(viewFactory != null, "View Factory can not be null.");
this._ViewFactory = viewFactory;
this.InitializeCommands();
}
开发者ID:dnldpavlik,项目名称:Desktop.Contacts,代码行数:7,代码来源:ContactsModuleViewModel.cs
示例3: MotherShip
public MotherShip(IViewFactory i_Factory)
: base(i_Factory, @"Sprites\MotherShip_32x120")
{
Color = Color.Red;
Alive = false;
Score = 500;
}
开发者ID:rockem,项目名称:spaceintruders,代码行数:7,代码来源:MotherShip.cs
示例4: BiomeListController
/// <summary>
/// Setup constructor
/// </summary>
/// <param name="viewFactory">View factory</param>
/// <param name="context">Selected biome context</param>
/// <param name="completeBiomeList">List of all biomes that can be selected</param>
/// <param name="currentBiomeList">Current biome list</param>
/// <param name="view">View to watch</param>
/// <exception cref="System.ArgumentNullException">Thrown if workspace, model or view are null</exception>
public BiomeListController( IViewFactory viewFactory, SelectedBiomeContext context, BiomeListModel completeBiomeList, BiomeListModel currentBiomeList, IBiomeListView view )
{
Arguments.CheckNotNull( viewFactory, "viewFactory" );
Arguments.CheckNotNull( context, "context");
Arguments.CheckNotNull( completeBiomeList, "completeBiomeList" );
Arguments.CheckNotNull( currentBiomeList, "currentBiomeList" );
Arguments.CheckNotNull( view, "view" );
m_ViewFactory = viewFactory;
m_Context = context;
m_AllBiomes = completeBiomeList;
m_CurrentBiomes = currentBiomeList;
// Run through all the available biomes
foreach ( BiomeModel model in m_AllBiomes.Models )
{
// Add the current biome to the view. Set it as selected if it is in the current biome list
view.AddBiome( model, m_CurrentBiomes.Models.IndexOf( model ) != -1 );
}
view.OnCreateBiome += OnCreateBiome;
view.OnAddBiome += OnAddBiome;
view.OnRemoveBiome += OnRemoveBiome;
view.BiomeSelected += OnBiomeSelected;
view.OnDeleteBiome += OnDeleteBiome;
m_View = view;
}
开发者ID:johann-gambolputty,项目名称:robotbastards,代码行数:36,代码来源:BiomeListController.cs
示例5: DefaultNancyModuleBuilder
/// <summary>
/// Initializes a new instance of the <see cref="DefaultNancyModuleBuilder"/> class.
/// </summary>
/// <param name="viewFactory">The <see cref="IViewFactory"/> instance that should be assigned to the module.</param>
/// <param name="responseFormatterFactory">An <see cref="IResponseFormatterFactory"/> instance that should be used to create a response formatter for the module.</param>
/// <param name="modelBinderLocator">A <see cref="IModelBinderLocator"/> instance that should be assigned to the module.</param>
/// <param name="validatorLocator">A <see cref="IModelValidatorLocator"/> instance that should be assigned to the module.</param>
public DefaultNancyModuleBuilder(IViewFactory viewFactory, IResponseFormatterFactory responseFormatterFactory, IModelBinderLocator modelBinderLocator, IModelValidatorLocator validatorLocator)
{
this.viewFactory = viewFactory;
this.responseFormatterFactory = responseFormatterFactory;
this.modelBinderLocator = modelBinderLocator;
this.validatorLocator = validatorLocator;
}
开发者ID:jbattermann,项目名称:Nancy,代码行数:14,代码来源:DefaultNancyModuleBuilder.cs
示例6: Bullet
public Bullet(IViewFactory i_Factory, eSpriteType i_Type)
: base(i_Factory, @"Sprites\Bullet")
{
Alive = false;
Type = i_Type;
BulletHit += Bullet_Dummy;
}
开发者ID:rockem,项目名称:spaceintruders,代码行数:7,代码来源:Bullet.cs
示例7: DefaultModuleBuilder
/// <summary>
/// Initializes a new instance of the <see cref="DefaultNancyModuleBuilder"/> class.
/// </summary>
/// <param name="viewFactory">The <see cref="IViewFactory"/> instance that should be assigned to the module.</param>
/// <param name="responseFormatterFactory">An <see cref="IResponseFormatterFactory"/> instance that should be used to create a response formatter for the module.</param>
/// <param name="modelBinderLocator">A <see cref="IModelBinderLocator"/> instance that should be assigned to the module.</param>
/// <param name="validatorLocator">A <see cref="IModelValidatorLocator"/> instance that should be assigned to the module.</param>
public DefaultModuleBuilder(IViewFactory viewFactory, IResponseFormatterFactory responseFormatterFactory, IModelBinderLocator modelBinderLocator, IModelValidatorLocator validatorLocator)
{
_viewFactory = viewFactory;
_responseFormatterFactory = responseFormatterFactory;
_modelBinderLocator = modelBinderLocator;
_validatorLocator = validatorLocator;
}
开发者ID:MrHayato,项目名称:PhotoCache,代码行数:14,代码来源:DefaultModuleBuilder.cs
示例8: RegisterViews
/*Cada vista nueva, debe estar registarada aquí, ya que es ViewFactory es de donde recuperamos las referencias*/
protected override void RegisterViews(IViewFactory viewFactory)
{
//TODO viewFactory.Register<LoginViewModel, Login>();
//TODO viewFactory.Register<RegistroViewModel, Registro>();
//TODO viewFactory.Register<PrincipalViewModel, Principal>();
}
开发者ID:cristajamar,项目名称:BlocXamarin,代码行数:8,代码来源:Startup.cs
示例9: RegisterViews
protected override void RegisterViews(IViewFactory viewFactory)
{
viewFactory.Register<LoginViewModel,Login>();
viewFactory.Register<RegistroViewModel, Registro>();
viewFactory.Register<PrincipalViewModel, Principal>();
viewFactory.Register<NuevoBlocViewModel,NuevoBlocView>();
}
开发者ID:luisgiltajamar,项目名称:BlocNotasCursoXamarin,代码行数:7,代码来源:Startup.cs
示例10: RegisterViews
protected override void RegisterViews(IViewFactory viewFactory)
{
viewFactory.Register<LoginViewModel, LoginPage>();
viewFactory.Register<LandingPageViewModel, LandingPage>();
viewFactory.Register<OrderFormViewModel, OrderFormPage>();
viewFactory.Register<RestaurantViewModel, RestaurantPage>();
viewFactory.Register<MenuViewModel, MenuPage>();
}
开发者ID:kmjonmastro,项目名称:LunchPacMobile,代码行数:8,代码来源:BootStrap.cs
示例11: ViewController
/// <summary>
/// Constructor for ViewController.
/// </summary>
/// <param name="messageBus">
/// The <see cref="IMessageBus"/> which will be used to listen for view requests.
/// </param>
/// <param name="viewFactory">
/// The <see cref="IViewFactory"/> which will be used to build the views.
/// </param>
/// <param name="viewPlacer">
/// The <see cref="IViewPlacer"/> which will be used to place the views.
/// </param>
public ViewController(IMessageBus messageBus, IViewFactory viewFactory, IViewPlacer viewPlacer)
{
MessageBus = messageBus;
ViewFactory = viewFactory;
ViewPlacer = viewPlacer;
Initialize();
}
开发者ID:brentedwards,项目名称:MvvmFabric,代码行数:20,代码来源:ViewController.cs
示例12: ConsoleJSLintProvider
public ConsoleJSLintProvider(Func<IJSLintContext> jsLintFactory, IFileSystemWrapper fileSystemWrapper, ISettingsRepository settingRepository, IConsoleWriter consoleWriter, IViewFactory viewFactory)
{
this.jsLintFactory = jsLintFactory;
this.fileSystemWrapper = fileSystemWrapper;
this.settingRepository = settingRepository;
this.consoleWriter = consoleWriter;
this.viewFactory = viewFactory;
}
开发者ID:jkorell,项目名称:jslintnet,代码行数:8,代码来源:ConsoleJSLintProvider.cs
示例13: PinkMonster
public PinkMonster(IViewFactory i_Factory)
: base(i_Factory, @"Sprites\Enemies_96x64")
{
Color = Color.LightPink;
Score = 300;
AddSourceRectangle(new Rectangle(0, 0, 32, 32));
AddSourceRectangle(new Rectangle(0, 32, 32, 32));
}
开发者ID:rockem,项目名称:spaceintruders,代码行数:8,代码来源:PinkMonster.cs
示例14: ShareTargetManager
// *** Constructors ***
public ShareTargetManager(IActivationManager activationManager, IViewFactory viewFactory)
{
this.viewFactory = viewFactory;
// Register with the activation manager
activationManager.Register(this);
}
开发者ID:Valks,项目名称:Okra,代码行数:10,代码来源:ShareTargetManager.cs
示例15: RegisterViews
protected override void RegisterViews(IViewFactory viewFactory)
{
viewFactory.Register<LoginViewModel, Login>();
viewFactory.Register<RegisterViewModel, Register>();
viewFactory.Register<PrincipalViewModel, Principal>();
viewFactory.Register<ListadoViewModel,Listado>();
viewFactory.Register<MainViewModel,Main>();
}
开发者ID:M1r3l,项目名称:RedSocial,代码行数:8,代码来源:StartUp.cs
示例16: BindableLayoutInflater
/// <summary>
/// Initializes a new instance of the <see cref="BindableLayoutInflater" /> class.
/// </summary>
protected BindableLayoutInflater([NotNull] IViewFactory factory, LayoutInflater original, Context newContext)
: base(original, newContext)
{
Should.NotBeNull(factory, "factory");
_viewFactory = factory;
// ReSharper disable once DoNotCallOverridableMethodsInConstructor
Initialize();
}
开发者ID:MuffPotter,项目名称:MugenMvvmToolkit,代码行数:11,代码来源:BindableLayoutInflater.cs
示例17: ScoreDisplay
public ScoreDisplay(IViewFactory i_ViewFactory)
: base(i_ViewFactory)
{
r_P1Score = ViewFactory.CreateFontComponent(@"Fonts\Scorefont");
r_P1Score.Logic = this;
r_P2Score = ViewFactory.CreateFontComponent(@"Fonts\Scorefont");
r_P2Score.Logic = this;
}
开发者ID:rockem,项目名称:spaceintruders,代码行数:8,代码来源:ScoreDisplay.cs
示例18: Monster
public Monster(IViewFactory i_Factory, string i_AssetName)
: base(i_Factory, i_AssetName)
{
r_Bullet = new Bullet(ViewFactory, eSpriteType.Bomb);
r_Bullet.YVelocity = 200;
r_Random = new Random(GetHashCode());
Type = eSpriteType.Monster;
}
开发者ID:rockem,项目名称:spaceintruders,代码行数:8,代码来源:Monster.cs
示例19: Init
public void Init()
{
mocks = new MockRepository();
config = mocks.StrictMock<IUserConfiguration>();
factory = mocks.Stub<IViewFactory>();
view = MockRepository.GenerateStub<ISettingsView>();
ClientServiceLocator.Register(config);
}
开发者ID:Zetto,项目名称:ZetSwitch,代码行数:8,代码来源:SettingsControllerTests.cs
示例20: LogicHandler
public LogicHandler(IViewFactory viewFactory)
{
this.viewFactory = viewFactory;
servicesProvider = new ServicesProvider(SettingsManager.Settings.ClientLanguage, SettingsManager.Settings.GameLanguage);
gameItem = servicesProvider.GetAllGames().Single(g => g.Code == SettingsManager.Settings.CurrentGameCode);
servicesProvider.LoadGame(gameItem);
}
开发者ID:calvinkwong,项目名称:pol-the-game,代码行数:8,代码来源:LogicHandler.cs
注:本文中的IViewFactory类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论