Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,29 @@
|
|||
using System.Windows.Forms;
|
||||
|
||||
class RosettaForm : Form
|
||||
{
|
||||
RosettaForm()
|
||||
{
|
||||
var clickCount = 0;
|
||||
|
||||
var label = new Label();
|
||||
label.Text = "There have been no clicks yet.";
|
||||
label.Dock = DockStyle.Top;
|
||||
Controls.Add(label);
|
||||
|
||||
var button = new Button();
|
||||
button.Text = "Click Me";
|
||||
button.Dock = DockStyle.Bottom;
|
||||
button.Click += delegate
|
||||
{
|
||||
clickCount++;
|
||||
label.Text = "Number of clicks: " + clickCount + ".";
|
||||
};
|
||||
Controls.Add(button);
|
||||
}
|
||||
|
||||
static void Main()
|
||||
{
|
||||
Application.Run(new RosettaForm());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue