je veux executer ce prog
public class Calculatrice
{
[Widget] Gtk.Entry entry1;
[Widget] Gtk.Entry entry2;
[Widget] Gtk.Label label2;
public static void Main()
{
new Calculatrice();
}
public Calculatrice ()
{
Application.Init();
Glade.XML gxml = new Glade.XML ("calc.glade", "window1", null);
gxml.Autoconnect(this);
Console.Out.WriteLine("hello1" );
Application.Run();
}
public void Calculer(object sender, EventArgs args)
{
double val1 = Double.Parse(entry1.Text);
double val2 = Double.Parse(entry2.Text);
label2.Text = ""+(val1 + val2);
}
private void OnWindowDeleteEvent (object sender, DeleteEventArgs a)
{
Application.Quit ();
a.RetVal = true;
}
}
mais le problème c est que la fenetre aparait 2sec et disparait apres pourkoi??