public BorderPresenter(IInfrastructureFactory infrastructureFactory, IBorder border, IScreenSize screenSize) { _border = border; _view = infrastructureFactory.Cteate(Data.Enum.Infrastructure.Border) as ISceneBorderView; screenSize.ChangeSizeEvent += ChangeSizeEventHandler; ChangeSizeEventHandler(screenSize.Size); }
public BallPresenter(IInfrastructureFactory infrastructureFactory, IScreenSize screenSize, IElementSize elementSize) { _elementSize = elementSize; _view = infrastructureFactory.Cteate(Data.Enum.Infrastructure.Ball) as IBallView; screenSize.ChangeSizeEvent += ChangeScreenSize; }
public void SetUp() { _editor = new SqlTextEditor(); var connectionConfiguration = ConfigurationProvider.GetConnectionConfiguration(ConfigurationProvider.ConnectionStrings[0].Name); _infrastructureFactory = connectionConfiguration.InfrastructureFactory; }
public void Initialize(IInfrastructureFactory infrastructureFactory, IDatabaseModel databaseModel) { _helpProvider = infrastructureFactory.CreateHelpProvider(); _codeCompletionProvider = infrastructureFactory.CreateCodeCompletionProvider(); _navigationService = infrastructureFactory.CreateNavigationService(); _colorizingTransformer.SetParser(infrastructureFactory.CreateParser()); DocumentRepository = new SqlDocumentRepository(infrastructureFactory.CreateParser(), infrastructureFactory.CreateStatementValidator(), databaseModel); }
public HomeForm() { InitializeComponent(); leftOrderButton = new Panel(); leftOrderButton.Size = new Size(7, 60); PanelMenu.Controls.Add(leftOrderButton); _InfraFactory = new InfrastructureFactory(); Reset(); }
public BottomPresenter(IInfrastructureFactory infrastructureFactory, IBottom bottom, IScreenSize screenSize) { _view = infrastructureFactory.Cteate(Data.Enum.Infrastructure.Bottom) as IBottomView; _model = bottom; _view.ViewEvent += ViewEventHandler; screenSize.ChangeSizeEvent += ChangeSizeEventHandler; ChangeSizeEventHandler(screenSize.Size); _bottomEventActions = new Dictionary <string, Action>() { { BottomEvent.ButtonDown, () => _model.StartDrag() }, { BottomEvent.Drag, () => _view.SetIncline(_model.Drag()) }, { BottomEvent.ButtonUp, () => _model.EndDrag() } }; }
public Download(IInfrastructureFactory infrasctructureFactory) { _infrasctructureFactory = infrasctructureFactory; _infrasctructureFileOps = _infrasctructureFactory.GetFileOperationsAccess(); _infrasctructureFileDownload = _infrasctructureFactory.GetFileDownloadAccess(); }
public ViewModel(IInfrastructureFactory infrastructureFactory) { this.infrastructureFactory = infrastructureFactory; }