示例#1
0
        public ProfileController(
            HttpServerUtilityBase server,
            IUploadService <Tag> uploadTagService,
            IModifyService <Photo> modifyPhotoService,
            IDeleteService <Photo> deletePhotoService,
            IPhotoService photoService,
            IPhotoUploader photoUploader,
            IPhotoConverter photoConverter,
            ITagsHelper tagsHelper)
        {
            Guard.WhenArgument(server, "server").IsNull().Throw();
            Guard.WhenArgument(uploadTagService, "uploadTagService").IsNull().Throw();
            Guard.WhenArgument(modifyPhotoService, "modifyPhotoService").IsNull().Throw();
            Guard.WhenArgument(deletePhotoService, "deletePhotoService").IsNull().Throw();
            Guard.WhenArgument(photoService, "photoService").IsNull().Throw();
            Guard.WhenArgument(photoUploader, "photoUploader").IsNull().Throw();
            Guard.WhenArgument(photoConverter, "photoConverter").IsNull().Throw();
            Guard.WhenArgument(tagsHelper, "tagsHelper").IsNull().Throw();

            this.server             = server;
            this.uploadTagService   = uploadTagService;
            this.modifyPhotoService = modifyPhotoService;
            this.deletePhotoService = deletePhotoService;
            this.photoService       = photoService;
            this.photoUploader      = photoUploader;
            this.photoConverter     = photoConverter;
            this.tagsHelper         = tagsHelper;
        }
示例#2
0
 public ProfilePage()
 {
     InitializeComponent();
     _studentService = new StudentService((string)Application.Current.Properties["jwt"]);
     _modifyService  = new ModifyService((string)Application.Current.Properties["jwt"]);
     Init();
 }
示例#3
0
        async void Init()
        {
            _courseService = new CourseService((string)Application.Current.Properties["jwt"]);
            _modifyService = new ModifyService((string)Application.Current.Properties["jwt"]);
            List <Course> l = await _courseService.getCourseListAsync();

            CourseViewModel test = new CourseViewModel(l);

            //test.test();
            BindingContext = test;
        }
示例#4
0
 public HomeController(IGetInfoService dbGet, IModifyService dbMod, ISearchService dbSearch)
 {
     this.dbGet    = dbGet;
     this.dbMod    = dbMod;
     this.dbSearch = dbSearch;
 }
示例#5
0
 public TracksController(IGetInfoService dbGet, IModifyService dbMod)
 {
     this.dbGet = dbGet;
     this.dbMod = dbMod;
 }