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; }
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()); }
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; } }
public FotoalbumService(IRestClient c, ILoginStateService state, FotoalbumRepo repo) { client = c; this.state = state; this.repo = repo; }
public FotoService(IRestClient c, ILoginStateService loginState) { client = c; this.loginState = loginState; }
public VideoService(IRestClient client, VideoRepo repo, ILoginStateService loginState) { this.client = client; this.repo = repo; this.loginState = loginState; }