public override void ViewDidLoad() { base.ViewDidLoad(); lblYears.Text = oCalc.FindTimeLeft(_User).ToString(); imgLogo.Image = UIImage.FromBundle("Images/clock.png"); // Perform any additional setup after loading the view, typically from a nib. }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Results); TextView lblYears = FindViewById <TextView> (Resource.Id.lblYears); lblYears.Text = oCalc.FindTimeLeft(((ControllClass)Application)._oUser).ToString(); //lblYears.Text = oCalc.FindTimeLeft (_User).ToString (); // imgLogo.Image = UIImage.FromBundle ("Images/clock.png"); // Create your application here }
// This is the main entry point of the application. static void Main (string[] args) { // if you want to use a different Application Delegate class from "AppDelegate" // you can specify it here. UIApplication.Main (args, null, "AppDelegate"); cPerson oUser; oUser = new cPerson (); cDeathCalculator dCalc; dCalc = new cDeathCalculator (); oUser.Age = 28; oUser.CigPerDay = 0; dCalc.FindTimeLeft (oUser); }
// This is the main entry point of the application. static void Main(string[] args) { // if you want to use a different Application Delegate class from "AppDelegate" // you can specify it here. UIApplication.Main(args, null, "AppDelegate"); cPerson oUser; oUser = new cPerson(); cDeathCalculator dCalc; dCalc = new cDeathCalculator(); oUser.Age = 28; oUser.CigPerDay = 0; dCalc.FindTimeLeft(oUser); }