Esempio n. 1
0
    public SharpApp()
        : base("Fixed")
    {
        SetDefaultSize(300,280);
        SetPosition(WindowPosition.Center);
        ModifyBg(StateType.Normal, new Gdk.Color(10,40,40));
        DeleteEvent += delegate {Application.Quit();};

        try{
            bardejov = new Gdk.Pixbuf("bardejov.jpg");
            rotunda = new Gdk.Pixbuf("rotunda.jpg");
            mincol = new Gdk.Pixbuf("mincol.jpg");
        } catch {
            Console.WriteLine("Images not found");
            Environment.Exit(1);
        }

        Image image1 = new Image(bardejov);
        Image image2 = new Image(rotunda);
        Image image3 = new Image(mincol);

        VBox fix = new VBox(true,4);

        fix.PackStart(image1);
        fix.Pack(image2);
        fix.PackEnd(image3);

        Add(fix);

        ShowAll();
    }