Example #1
0
        public ImageExporter(ThumbStore model, string exportPath)
        {
            this.images     = new List <Image>();
            this.exportPath = exportPath;

            lock (model) {
                Gtk.TreeIter iter;
                if (model.GetIterFirst(out iter))
                {
                    do
                    {
                        this.images.Add(model.GetImage(new Gtk.TreeRowReference(model, model.GetPath(iter))));
                    } while(model.IterNext(ref iter));
                }
            }

            this.thread      = new Thread(new ThreadStart(Run));
            this.thread.Name = "Image Exporter";
        }