Last active
August 29, 2015 14:10
-
-
Save YutaWatanabe/35cfa8bb86285817bbe4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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