Example #1
0
 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);
 }
Example #2
0
 public BallPresenter(IInfrastructureFactory infrastructureFactory, IScreenSize screenSize,
                      IElementSize elementSize)
 {
     _elementSize = elementSize;
     _view        = infrastructureFactory.Cteate(Data.Enum.Infrastructure.Ball) as IBallView;
     screenSize.ChangeSizeEvent += ChangeScreenSize;
 }
Example #3
0
        public void SetUp()
        {
            _editor = new SqlTextEditor();

            var connectionConfiguration = ConfigurationProvider.GetConnectionConfiguration(ConfigurationProvider.ConnectionStrings[0].Name);

            _infrastructureFactory = connectionConfiguration.InfrastructureFactory;
        }
Example #4
0
 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);
 }
Example #5
0
		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);
		}
Example #6
0
        public HomeForm()
        {
            InitializeComponent();

            leftOrderButton      = new Panel();
            leftOrderButton.Size = new Size(7, 60);
            PanelMenu.Controls.Add(leftOrderButton);

            _InfraFactory = new InfrastructureFactory();

            Reset();
        }
Example #7
0
 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() }
     };
 }
Example #8
0
 public Download(IInfrastructureFactory infrasctructureFactory)
 {
     _infrasctructureFactory      = infrasctructureFactory;
     _infrasctructureFileOps      = _infrasctructureFactory.GetFileOperationsAccess();
     _infrasctructureFileDownload = _infrasctructureFactory.GetFileDownloadAccess();
 }
Example #9
0
 public ViewModel(IInfrastructureFactory infrastructureFactory)
 {
     this.infrastructureFactory = infrastructureFactory;
 }