コード例 #1
0
 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.
 }
コード例 #2
0
        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
        }
コード例 #3
0
ファイル: Main.cs プロジェクト: aragorn55/ClassSampleCode
		// 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);

		}
コード例 #4
0
ファイル: Main.cs プロジェクト: aragorn55/mobileDevOld
        // 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);
        }