Skip to content

Instantly share code, notes, and snippets.

@cwensley
Last active August 29, 2015 14:02
Show Gist options
  • Save cwensley/885fc77a2728ef5dbefe to your computer and use it in GitHub Desktop.
Save cwensley/885fc77a2728ef5dbefe to your computer and use it in GitHub Desktop.
using System;
using Eto;
using Eto.Forms;
using Eto.Drawing;
namespace SharpSHPBuilder
{
public class MainWindow : Form
{
public MainWindow()
{
Title = "EtoForm";
Size = new Size(200, 200);
}
[STAThread]
static void Main()
{
var generator = Generator.GetGenerator(Generators.GtkAssembly);
var app = new Application(generator);
app.Initialized += delegate
{
app.MainForm = new MainWindow();
app.MainForm.Show();
};
app.Run();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment