コード例 #1
0
        public LoginPageViewModel(INavigationService navigationService, FacadeService facadeService) : base(navigationService, facadeService)
        {
            var header = new HeaderModel();

            header.HeaderText = AppResources.TEXT_LOGIN;
            CurrentHeader     = header;
        }
コード例 #2
0
ファイル: Facade.cs プロジェクト: JRRN/PatternsInAction
        public static void Show()
        {
            IFacadeService _facade = new FacadeService();

            _facade.GetCatalogo();

            _facade.GetBookById(Guid.NewGuid());

            _facade.GetPedidoById(Guid.NewGuid());
        }
コード例 #3
0
        public IActionResult GetAttachment(string jobid)
        {
            if (string.IsNullOrEmpty(jobid))
            {
                return(BadRequest());
            }

            List <Attachment> attachments = FacadeService.GetAttachmentsCSOM(AppConfiguaraton.ConsultaionAttachementListName, jobid);

            return(Ok(attachments));
        }
コード例 #4
0
        public MyDetailPageViewModel(INavigationService navigationService, FacadeService facadeService) : base(navigationService, facadeService)
        {
            var header = new HeaderModel();

            header.HeaderText   = AppResources.TEXT_DETAIL;
            header.LeftText     = "book-open";    //AppResources.Text_ADDRESS_BOOK;
            header.RightText    = "sign-out-alt"; //AppResources.TEXT_LOGOUT;
            header.LeftCommand  = BackCommand;
            header.RightCommand = LogoutCommand;
            CurrentHeader       = header;
        }
コード例 #5
0
        public MyListPageViewModel(INavigationService navigationService, FacadeService facadeService) : base(navigationService, facadeService)
        {
            var header = new HeaderModel();

            header.HeaderText           = AppResources.Text_ADDRESS_BOOK;
            header.LeftText             = "sign-out-alt"; //AppResources.TEXT_LOGOUT;
            header.RightText            = "plus";         //AppResources.TEXT_ADD;
            header.LeftCommand          = LogoutCommand;
            header.RightCommand         = AddCommand;
            header.IsVisiblesearchEntry = true;
            header.SearchContactCommand = SearchContactCommand;
            CurrentHeader = header;
        }
コード例 #6
0
        protected void Upload(string jobId, string requestType, List <IFormFile> files, string listName, string activityName, string uploaderName, bool uploadToSharepoint = true, string type = "")
        {
            var path = Path.Combine(this.HostingEnvironment.WebRootPath, requestType, jobId, type);

            foreach (var file in files)
            {
                if (file != null && file.Length > 0)
                {
                    var filesx = HttpContext.Request.Form.Files;


                    if (!Directory.Exists(path))
                    {
                        Directory.CreateDirectory(path);
                    }

                    if (file.Length > 0)
                    {
                        string fileName = file.FileName.Substring(0, file.FileName.LastIndexOf("."));
                        fileName = fileName + DateTime.Now.ToLongTimeString().ValidateName() + Path.GetExtension(file.FileName);
                        using (var fileStream = new FileStream(Path.Combine(path, fileName), FileMode.Create))
                        {
                            file.CopyTo(fileStream);
                        }
                    }
                }
            }

            if (uploadToSharepoint)
            {
                var folder = new DirectoryInfo(path);
                if (folder.Exists)
                {
                    FacadeService.UploadAttachments(path, listName, jobId, activityName, uploaderName, type);
                    Directory.Delete(path, true);
                }
            }
        }
コード例 #7
0
 public ApiController(FacadeService facadeService)
 {
     FacadeService = facadeService;
 }
コード例 #8
0
 public ManageController(FacadeService facadeService, IOperationMessageAccessor operationMessageAccessor, IHubContext <GameHub, IGameHubClient> gameHubContext)
 {
     FacadeService            = facadeService;
     OperationMessageAccessor = operationMessageAccessor;
     GameHubContext           = gameHubContext;
 }
コード例 #9
0
 public CarouselPageViewModel(INavigationService navigationService, FacadeService facadeService)
     : base(navigationService, facadeService)
 {
     loadStaticData();
 }
コード例 #10
0
 public HomeController(FacadeService facadeService)
 {
     FacadeService = facadeService;
 }
コード例 #11
0
 public TinderPageViewModel(INavigationService navigationService, FacadeService facadeService)
     : base(navigationService, facadeService)
 {
     InitializeProfiles();
 }
コード例 #12
0
 public WebUrlTestPageViewModel(INavigationService navigationService, FacadeService facadeService)
     : base(navigationService, facadeService)
 {
     //AccountPageURL = "http://54.244.107.179/Plaid/Plaid"; //"http://34.216.71.66/Plaid/Plaid";
     AccountPageURL = "https://us04web.zoom.us/j/9218226818?pwd=ZmdXcjJ3Z2RqcUE4UzBmVnhwWUNsdz09";
 }
コード例 #13
0
 public ImgTransformPageViewModel(INavigationService navigationService, FacadeService facadeService)
     : base(navigationService, facadeService)
 {
 }
コード例 #14
0
 public ViewModelBase(INavigationService navigationService, FacadeService facadeService)
 {
     _navigationService = navigationService;
     _facadeService     = facadeService;
 }
コード例 #15
0
 public BreadCrumbPageViewModel(INavigationService navigationService, FacadeService facadeService)
     : base(navigationService, facadeService)
 {
     MenuItems = ProductService.GetMenuItemsList();
 }
コード例 #16
0
 public MainPageViewModel(INavigationService navigationService, FacadeService facadeService)
     : base(navigationService, facadeService)
 {
 }
コード例 #17
0
 public SwipeViewPageModel(INavigationService navigationService, FacadeService facadeService)
     : base(navigationService, facadeService)
 {
 }
コード例 #18
0
 public TransformCategoryPageViewModel(INavigationService navigationService, FacadeService facadeService)
     : base(navigationService, facadeService)
 {
     CategoryList = ImgService.GetImagesList();
 }
コード例 #19
0
 public CollectionViewPageModel(INavigationService navigationService, FacadeService facadeService)
     : base(navigationService, facadeService)
 {
     Products = ProductService.GetProductsList();
 }