Exemplo n.º 1
0
        public MovieManSearchPage()
        {
            InitializeComponent();
            var obj = new MovieManSearchModelView();

            obj.SetUpDi();
            DataContext = obj;
        }
Exemplo n.º 2
0
        /// <summary>
        /// view 컨트롤에 동작에 필요한 클래스들을 di개념으로 설정
        /// <see cref="MovieManDtoFactory"/>
        /// <see cref="YunWebRequest"/>
        /// </summary>
        /// <param name="view"></param>
        public static void SetUpDi(this MovieManSearchModelView view)
        {
            var cvfactory = new MovieManDtoFactory() as IDtoFactory <MovieManDto>;

            view.IDtoFactory = cvfactory;
            view.MovieManSearchGetQueryUrl = new MovieManSearchGetQueryUrl();
            view.IYunWebRequest            = new YunWebRequest();
        }