예제 #1
0
 public OrdreService(IDbService <WS_Ordre> ordreDbService, IDbService <WS_OrdreLinje> ordreLinjeDbService, ILoginStateService login)
 {
     this.ordreDbService      = ordreDbService;
     this.ordrelinjeDbService = ordreLinjeDbService;
     this.ordre        = new WS_Ordre();
     this.loginService = login;
 }
예제 #2
0
 public HomeViewModel(IServiceProvider container, ILoginStateService state) : base(container)
 {
     this.State              = state;
     PicturePageCommand      = new Command(async() => await PicturePage());
     CreatePhotoalbumCommand = new Command(async() => await PhotoAlbumPage());
     SettingsPageCommand     = new Command(async() => await SettingsPage());
     LogoutCommand           = new Command(async() => await LogOut());
     VideoPageCommand        = new Command(async() => await VideoPage());
     ManageFotoCommand       = new Command(async() => await ManageFotoPage());
     ManageVideoCommand      = new Command(async() => await ManageVideoPage());
 }
예제 #3
0
 public App(LoginPage loginPage, Home home, ILoginStateService loginState)
 {
     InitializeComponent();
     if (App.Current.Properties.ContainsKey("UserId"))
     {
         loginState.GetUserFromId((int)App.Current.Properties["UserId"]);
         new Navigation.Navigation(home);
     }
     else
     {
         MainPage = loginPage;
     }
 }
예제 #4
0
 public FotoalbumService(IRestClient c, ILoginStateService state, FotoalbumRepo repo)
 {
     client     = c;
     this.state = state;
     this.repo  = repo;
 }
예제 #5
0
 public FotoService(IRestClient c, ILoginStateService loginState)
 {
     client          = c;
     this.loginState = loginState;
 }
예제 #6
0
 public VideoService(IRestClient client, VideoRepo repo, ILoginStateService loginState)
 {
     this.client     = client;
     this.repo       = repo;
     this.loginState = loginState;
 }