Esempio n. 1
0
        void Run()
        {
            GLib.Idle.Add (new GLib.IdleHandler (delegate() {
                iw = controller.AddImageWindow (Util.CurrentDir()+"assets"+Util.DirSP()+"unicast.png");
                controller.AddWindow (iw);
                //controller.AddTextWindow ("test", mw.GetColor(), 100, 100);
                //controller.AddImageWindow ("../../image/test.png");
                return false;
            }));

            while (true) {
                Thread.Sleep (500);
                GLib.Idle.Add (new GLib.IdleHandler (
                    process
                ));
                controller.CloseWindow ();
            }
        }
Esempio n. 2
0
 public ImageWindow AddImageWindow(string path)
 {
     //Util.ThreadEnter ();
     ImageWindow iw = new ImageWindow (path);
     //Util.ThreadLeave ();
     AddWindow (iw);
     return iw;
 }