VillainTracker.VillainTrackerAppDelegate.DidFinishLaunching C# (CSharp) Method

DidFinishLaunching() public method

public DidFinishLaunching ( NSNotification notification ) : void
notification NSNotification
return void
		public override void DidFinishLaunching (NSNotification notification)
		{
			villain = new Villain {
				Name = "Lex Luthor",
				LastKnownLocation = "Smallville",
				SwornEnemy = "Superman",
				PrimaryMotivation = "Revenge",
				Powers = new [] {"Intellect", "Leadership"},
				PowerSource = "Superhero Action",
				Evilness = 9
			};
			
			villains.Add (villain);
			
			// initialize delegates after critical data initialized
			villainsTableView.DataSource = new DataSource (this); 
			villainsTableView.Delegate = new VillainsTableViewDelegate (this);
			
			notesView.TextDidChange += delegate {
				villain.Notes = notesView.Value;
			};
			villainsTableView.ReloadData ();
			villainsTableView.SelectRow (0, false);
			
			UpdateDetailViews ();
		}