Skip to content

Instantly share code, notes, and snippets.

@YutaWatanabe
Last active August 29, 2015 14:10
Show Gist options
  • Save YutaWatanabe/35cfa8bb86285817bbe4 to your computer and use it in GitHub Desktop.
Save YutaWatanabe/35cfa8bb86285817bbe4 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace CdonApp
{
public partial class CdonPage : ContentPage
{
string[] options =
{
"Xamarin",
"Unity",
"iPhone",
"Android",
"IoT",
"C#"
};
public CdonPage()
{
InitializeComponent();
}
void ButtonClicked(object sender, EventArgs args)
{
label.Text = options[new Random().Next(options.Length - 1)];
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment