1
- using Csla . Configuration ;
2
- using ProjectTracker . Library ;
3
- using System ;
4
- using System . Collections . Generic ;
5
- using System . Linq ;
6
- using System . Text ;
1
+ using System ;
7
2
using System . Threading . Tasks ;
3
+ using Csla . Configuration ;
4
+ using ProjectTracker . Library ;
8
5
using Xamarin . Forms ;
9
6
10
7
namespace ProjectTracker . Ui . Xamarin
11
8
{
12
- public partial class App : Application
13
- {
9
+ public partial class App : Application
10
+ {
14
11
public static Page RootPage { get ; private set ; }
15
12
16
- public App ( )
17
- {
18
- InitializeComponent ( ) ;
19
-
13
+ public App ( )
14
+ {
15
+ InitializeComponent ( ) ;
16
+ Csla . DataPortalClient . HttpProxy . UseTextSerialization = true ;
20
17
CslaConfiguration . Configure ( )
21
18
. DataPortal ( )
22
- . DefaultProxy ( typeof ( Csla . DataPortalClient . HttpProxy ) ,
23
- "https://ptrackerserver.azurewebsites.net/api/dataportal " ) ;
19
+ . DefaultProxy ( typeof ( Csla . DataPortalClient . HttpProxy ) ,
20
+ "https://ptrackerserver.azurewebsites.net/api/dataportaltext " ) ;
24
21
25
22
Library . Security . PTPrincipal . Logout ( ) ;
26
23
27
24
MainPage = new NavigationPage ( new XamarinFormsUi . Views . Dashboard ( ) ) ;
28
25
RootPage = MainPage ;
29
26
}
30
27
31
- protected override async void OnStart ( )
32
- {
28
+ protected override async void OnStart ( )
29
+ {
33
30
await Library . Security . PTPrincipal . LoginAsync ( "manager" , "manager" ) ;
34
31
35
32
await RoleList . CacheListAsync ( ) ;
36
33
}
37
34
38
- protected override void OnSleep ( )
39
- {
40
- // Handle when your app sleeps
41
- }
35
+ protected override void OnSleep ( )
36
+ {
37
+ // Handle when your app sleeps
38
+ }
42
39
43
- protected override void OnResume ( )
44
- {
45
- // Handle when your app resumes
46
- }
40
+ protected override void OnResume ( )
41
+ {
42
+ // Handle when your app resumes
43
+ }
47
44
48
45
public static async Task NavigateTo ( Type page )
49
46
{
@@ -62,4 +59,4 @@ private static async Task NavigateTo(Page page)
62
59
await RootPage . Navigation . PushAsync ( page ) ;
63
60
}
64
61
}
65
- }
62
+ }
0 commit comments