-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.cs
51 lines (41 loc) · 1.17 KB
/
Main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using MonoTouch.Dialog;
using System.Drawing;
using Bunk1.Helpers;
namespace BunknotesApp
{
public class Application
{
static void Main (string[] args)
{
UIApplication.Main (args);
}
}
public partial class AppDelegate:UIApplicationDelegate
{
public event EventHandler AppDidEnterBackground = delegate {};
public override void DidEnterBackground (UIApplication application)
{
AppDidEnterBackground.Invoke(this, EventArgs.Empty);
}
public static AppDelegate CurrentApp{ get{
return ((AppDelegate)UIApplication.SharedApplication.Delegate);
}
}
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
ConfigurationWorker.ReInitValues();
window.AddSubview (navigation.View);
//var loginScreen = new ControllerBase { Autorotate = true };
var loginScreen = new LoginScreen(){ Autorotate = true };
//var loginScreen = new ComposeMessageScreen{ Autorotate = true };
navigation.PushViewController (loginScreen, true);
window.MakeKeyAndVisible ();
return true;
}
}
}