Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Reflection;
- using System.IO;
- using Gtk;
- namespace tito
- {
- class MainClass
- {
- public static void Main (string[] args)
- {
- Application.Init ();
- MainWindow win = new MainWindow ();
- Assembly assembly = Assembly.GetExecutingAssembly ();
- var stream = assembly.GetManifestResourceStream ("image.png");
- var img = new Gtk.Image (stream);
- win.Add (img);
- win.Show ();
- Application.Run ();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement