private void UpdateProjectList() { store.Clear(); foreach (Project p in this.projects) { GLib.Value Name = new GLib.Value(p.Projectname); Gdk.Pixbuf buf; if (p.ProjectStatus.BuildStatus == BuildStatus.Success) { Console.WriteLine("OK"); buf = new Gdk.Pixbuf(null, "green-24.png"); } else if (p.ProjectStatus.BuildStatus == BuildStatus.Failure) { Console.WriteLine("Failed"); buf = new Gdk.Pixbuf(null, "red-24.png"); } else { Console.WriteLine("Unknown"); buf = new Gdk.Pixbuf(null, "gray-24.png"); } store.Append(out iter); store.SetValue(iter, 0, Name); store.SetValue(iter, 1, buf); store.SetValue(iter, 2, this.projects.IndexOf(p)); } MonoTray.SaveProjects(this.projects); this.projectsTreeview.ShowAll(); }
private void QuitSelected(object source, EventArgs args) { MonoTray.SaveProjects(this.projects); Gtk.Application.Quit(); Environment.Exit(0); }