public BindableLayoutInflater(IViewFactory factory, Context context) : base(context) { Should.NotBeNull(factory, "factory"); _viewFactory = factory; Initialize(); }
/*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>(); }
protected override void RegisterViews(IViewFactory viewFactory) { viewFactory.Register<LoginViewModel,Login>(); viewFactory.Register<RegistroViewModel, Registro>(); viewFactory.Register<PrincipalViewModel, Principal>(); viewFactory.Register<NuevoBlocViewModel,NuevoBlocView>(); }
public MotherShip(IViewFactory i_Factory) : base(i_Factory, @"Sprites\MotherShip_32x120") { Color = Color.Red; Alive = false; Score = 500; }
/// <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; }
/// <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; }
public ContactsModuleViewModel(IViewFactory viewFactory) { Contract.Requires(viewFactory != null, "View Factory can not be null."); this._ViewFactory = viewFactory; this.InitializeCommands(); }
/// <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; }
public Bullet(IViewFactory i_Factory, eSpriteType i_Type) : base(i_Factory, @"Sprites\Bullet") { Alive = false; Type = i_Type; BulletHit += Bullet_Dummy; }
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>(); }
public YellowMonster(IViewFactory i_Factory) : base(i_Factory, @"Sprites\Enemies_96x64") { Color = Color.LightYellow; Score = 100; AddSourceRectangle(new Rectangle(64, 0, 32, 32)); AddSourceRectangle(new Rectangle(64, 32, 32, 32)); }
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; }
public DefaultNancyModuleBuilderFixture() { this.module = new FakeNancyModule(); this.rootPathProvider = A.Fake<IRootPathProvider>(); this.responseFormatter = new DefaultResponseFormatter(this.rootPathProvider); this.viewFactory = A.Fake<IViewFactory>(); this.builder = new DefaultNancyModuleBuilder(this.viewFactory, this.responseFormatter); }
public WorkoutController(IWorkoutService workoutService, ICommandInvoker commandInvoker, IViewFactory<int, WorkoutSummaryViewModel> viewFactory, IViewFactory<string, IList<Workout>> workoutViewFactory, UserIdProvider idProvider) { _workoutService = workoutService; _commandInvoker = commandInvoker; _viewFactory = viewFactory; _workoutViewFactory = workoutViewFactory; _idProvider = idProvider; }
/// <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(); }
/// <summary> /// Initializes a new instance of the <see cref="BindableLayoutInflater" /> class. /// </summary> public BindableLayoutInflater(IViewFactory factory, Context context) : base(context) { Should.NotBeNull(factory, "factory"); _viewFactory = factory; // ReSharper disable once DoNotCallOverridableMethodsInConstructor Initialize(); }
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; }
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)); }
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); }
public PersonDetailsPresenter(IViewFactory Factory, IPersonManager Manager) { _factory = Factory; _manager = Manager; _view = _factory.CreateDetailsView(); _view.Presenter = this; }
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>(); }
// *** Constructors *** public ShareTargetManager(IActivationManager activationManager, IViewFactory viewFactory) { this.viewFactory = viewFactory; // Register with the activation manager activationManager.Register(this); }
protected override void RegisterViews(IViewFactory viewFactory) { viewFactory.Register<LoginViewModel,LoginView>(); viewFactory.Register<GruposViewModel,GrupoView>(); viewFactory.Register<NewGrupoViewModel,NewGrupoView>(); viewFactory.Register<TareasViewModel,TareasView>(); viewFactory.Register<NuevaTareaViewModel,NuevaTareaView>(); }
public BlueMonster(IViewFactory i_Factory) : base(i_Factory, @"Sprites\Enemies_96x64") { Color = Color.LightBlue; Score = 200; AddSourceRectangle(new Rectangle(32, 0, 32, 32)); AddSourceRectangle(new Rectangle(32, 32, 32, 32)); }
/// <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(); }
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; }
public void Init() { mocks = new MockRepository(); config = mocks.StrictMock<IUserConfiguration>(); factory = mocks.Stub<IViewFactory>(); view = MockRepository.GenerateStub<ISettingsView>(); ClientServiceLocator.Register(config); }
public EditTaskCommand( ITaskListViewModel taskListViewModel, IViewFactory<IEditTaskView> editTaskViewFactory, IEditTaskViewModelFactory editTaskViewModelFactory) : base(taskListViewModel) { this.editTaskViewFactory = editTaskViewFactory; this.editTaskViewModelFactory = editTaskViewModelFactory; }
public RavenSessionModule(IViewFactory viewFactory, IResponseFormatter responseFormatter, IModelBinderLocator modelBinderLocator, IRavenSessionManager ravenSessionProvider) { this.viewFactory = viewFactory; this.responseFormatter = responseFormatter; this.modelBinderLocator = modelBinderLocator; _ravenSessionProvider = ravenSessionProvider; }
public HttpContextWrapper(HttpContext context, IRouteContext route, IViewFactory viewFactory) { this._context = context; this._request = new HttpRequestWrapper(context.Request); this._response = new HttpResponseWrapper(context.Response); this._session = new HttpSessionStateWrapper(context.Session); this.Route = route; this.ViewFactory = viewFactory; }
public ModalNavigationControllerPage(IViewFactory viewFactory) : base(viewFactory) { }
public NavigationControllerPage(IViewFactory viewFactory) { _viewFactory = viewFactory ?? throw new ArgumentNullException(nameof(viewFactory)); }
public Navigator(Lazy <INavigation> navigation, IViewFactory viewFactory) { _navigation = navigation; _viewFactory = viewFactory; }
public MentorsControllerService(IMentorDTOService service, ApplicationUserManager userManager, IStudentDTOService studentService, IViewFactory viewFactory, IDTOFactory dtoFactory) { this.studentService = studentService; this.mentorService = service; this.userManager = userManager; this.viewFactory = viewFactory; this.dtoFactory = dtoFactory; }
public NavigatorService(IViewFactory viewFactory, Lazy <INavigation> navigation) { _viewFactory = viewFactory; _navigation = navigation; }
public ConnectSectionViewModel(IMessenger messenger, IShellService shell, IStorage storage, ITeamExplorerServices teamexplorer, IViewFactory viewFactory, IWebService web) { messenger.Register("OnLogined", OnLogined); messenger.Register <string, Repository>("OnClone", OnRepositoryCloned); _messenger = messenger; _shell = shell; _storage = storage; _teamexplorer = teamexplorer; _viewFactory = viewFactory; _web = web; Repositories = new ObservableCollection <Repository>(); Repositories.CollectionChanged += OnRepositoriesChanged; _signOutCommand = new DelegateCommand(OnSignOut); _cloneCommand = new DelegateCommand(OnClone); _createCommand = new DelegateCommand(OnCreate); _openRepositoryCommand = new DelegateCommand <Repository>(OnOpenRepository); LoadRepositoriesAsync(); }
protected abstract void RegisterViews(IViewFactory viewFactory);
public CustomStatusCodeHandler(IViewFactory factory) : base(factory) { }
private void RegisterViews(IViewFactory viewFactory) { viewFactory.Register <HomeBaseViewModel, HomePage>(); viewFactory.Register <SecondViewModel, SecondPage>(); }
public AdminController(IRepositoryFactory db, IViewFactory view, User user) : base(db, view) { _user = user; }
public BaseTreeTableDelegate() { _viewFactory = Autofac.Injection.Resolve <IViewFactory>(); }
public Navigator(IPage page, IViewFactory viewFactory) { _page = page; _viewFactory = viewFactory; }
public NotFoundStatusHandler(IViewFactory factory) : base(factory) { }
public ErrorStatusCodeHandler(IViewFactory viewFactory) : this(viewFactory, new DefaultJsonSerializer()) { }
public ErrorStatusCodeHandler(IViewFactory viewFactory, ISerializer serializer) : base(viewFactory) { _serializer = serializer; }
public AttendancesControllerService(IAttendanceDTOService attendanceService, IViewFactory viewFactory, IDTOFactory dtoFactory) { this.viewFactory = viewFactory; this.attendanceService = attendanceService; this.dtoFactory = dtoFactory; }
public ConnectSectionViewModel(IMessenger messenger, IShellService shell, IStorage storage, ITeamExplorerServices teamexplorer, IViewFactory viewFactory, IWebService web) { messenger.Register("OnLoggedIn", OnLoggedIn); messenger.Register("OnSignedOut", OnSignedOut); messenger.Register <string, Repository>("OnClone", OnRepositoryCloned); _messenger = messenger; _shell = shell; _storage = storage; _teamexplorer = teamexplorer; _viewFactory = viewFactory; _web = web; Repositories = new ObservableCollection <Repository>(); Repositories.CollectionChanged += OnRepositoriesChanged; SignInCommand = new DelegateCommand(OnSignIn); SignUpCommand = new DelegateCommand(OnSignUp); _signOutCommand = new DelegateCommand(OnSignOut); _cloneCommand = new DelegateCommand(OnClone); _createCommand = new DelegateCommand(OnCreate); _openRepositoryCommand = new DelegateCommand <Repository>(OnOpenRepository); LoggedInButtonsVisible = _storage.IsLogined ? Visibility.Visible : Visibility.Collapsed; NotLoggedInButtonsVisible = LoggedInButtonsVisible == Visibility.Visible ? Visibility.Collapsed : Visibility.Visible; IsRepositoriesVisible = LoggedInButtonsVisible == Visibility.Visible; LoadRepositoriesAsync(); }
protected override void BindViewModelsToViews(IViewFactory viewFactory) { // TODO Bind your view models to pages // viewFactory.Register<HomeViewModel, HomePage>(); }
public GiteaInvitationSection(IMessenger messenger, IShellService shell, IStorage storage, IViewFactory viewFactory) { _messenger = messenger; _shell = shell; _storage = storage; _viewFactory = viewFactory; _messenger.Register("OnLoggedIn", OnLoggedIn); _messenger.Register("OnSignedOut", OnSignedOut); CanConnect = true; CanSignUp = true; ConnectLabel = Strings.Invitation_Connect; SignUpLabel = Strings.Invitation_SignUp; Name = Strings.Name; Provider = Strings.Provider + (storage.IsLogined?"(" + storage.Host + ")": Strings.GiteaInvitationSection_GiteaInvitationSection_NoLogin); Description = Strings.Description; var assembly = Assembly.GetExecutingAssembly().GetName().Name; var image = new BitmapImage(new Uri($"pack://application:,,,/{assembly};component/Resources/logo.png", UriKind.Absolute));; var drawing = new DrawingGroup(); drawing.Children.Add(new GeometryDrawing { Brush = new ImageBrush(image), Geometry = new RectangleGeometry(new Rect(new Size(image.Width, image.Height))) }); Icon = new DrawingBrush(drawing); IsVisible = !storage.IsLogined; }
ViewFactoryEntry CreateViewFactoryEntry(ViewFactoryAttribute a, Type factoryType, IViewFactory factory) { var entry = new ViewFactoryEntry(this) { RegisteredName = a.RegisteredName, DisplayName = factory.GetViewDisplayName(a.RegisteredName), TypeName = factoryType.AssemblyQualifiedName, IsSingleInstance = a.IsSingleInstance, IsSingleInstancePerLayout = a.IsSingleInstancePerLayout, IsInternalOnly = a.IsInternalOnly, DefaultShortcutKey = string.IsNullOrEmpty(a.DefaultShortcutKey) ? string.Empty : a.DefaultShortcutKey.ToUpperInvariant(), Factory = factory }; if (!string.IsNullOrEmpty(a.DocumentAffinities)) { entry.DocumentFactoryAffinities.AddRange(a.DocumentAffinities.Split('|')); } return(entry); }
//分割・結合メソッド public void SplitHorizontal(PaneDivision.IPane view, IViewFactory factory) { InternalSplit(view, factory, PaneDivision.Direction.TB); }
public PopupViewCreationParam(IViewFactory factory) { _viewFactory = factory; _initialSize = new Size(300, 300); }
public void SplitVertical(PaneDivision.IPane view, IViewFactory factory) { InternalSplit(view, factory, PaneDivision.Direction.LR); }
private PaneDivision.IPane CreateNewPane(IViewFactory factory, DockStyle dock) { PaneDivision.IPane pb = new SplittableViewPane(this, factory.CreateNew(_parent)); pb.AsDotNet().Dock = dock; return(pb); }
public RenderAction(IViewFactory viewFactory) { _viewFactory = viewFactory; }
public ErrorHandler(IViewFactory factory) { this.factory = factory; }
public ViewApiProcessor(IViewFactory _viewFactory) { this.viewFactory = _viewFactory; }
public WorkoutController(IWorkoutService workoutService, ICommandInvoker commandInvoker, IViewFactory <int, WorkoutSummaryViewModel> viewFactory) { _workoutService = workoutService; _commandInvoker = commandInvoker; _viewFactory = viewFactory; }
protected override void RegisterViews(IViewFactory viewFactory) { viewFactory.Register <TimelineViewModel, TimelineView>(); viewFactory.Register <AddTweetViewModel, AddTweetView>(); viewFactory.Register <TweetViewModel, TweetView>(); }
//private readonly IPage _page; public Navigator(Lazy <INavigation> navigation, IViewFactory viewFactory)//, IPage page) { _navigation = navigation; _viewFactory = viewFactory; //_page = page; }