Skip to content

Instantly share code, notes, and snippets.

@mgroves
Created November 4, 2010 19:25
Show Gist options
  • Save mgroves/663029 to your computer and use it in GitHub Desktop.
Save mgroves/663029 to your computer and use it in GitHub Desktop.
private void saveButton_Click(object sender, EventArgs e)
{
var portfolioName = FindViewById<EditText>(Resource.id.portfolioName);
_repo.SavePortfolio(new Portfolio() {Name = portfolioName.Text.ToString()});
Toast.MakeText(this, "You saved: " + portfolioName.Text, ToastLength.Short).Show();
var intent = new Intent();
SetResult(Result.Ok, intent);
Finish();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment