Esempio n. 1
0
        public MainWindow(string[] Args)
        {
            gxml = new Glade.XML(null, "gui.glade", "MainWindow", null);
            gxml.Autoconnect(this);

            events = new Queue<Event>();
            deltas = new Queue<Delta>();

            curr = new BugDisplay(frmCurrent);
            //curr.render(false,"hello world");
            dupl = new BugDisplay(frmDupl);

            ((Window)gxml.GetWidget("MainWindow")).Maximize();
            ((Window)gxml.GetWidget("MainWindow")).ShowAll();
            hrfBrowser.Clicked += OnNoClicked;
            //GlobalProxySelection.Select = new WebProxy("http://taz:8118");

            bugz = new Bugzilla("http://bugzilla.gnome.org/");
            BugDB.bugz = bugz;
            if (Args.Length !=0)
                product = Args[0];

            todo = new Queue<Bug>();
            ready();
            hasprocess = true;
            GLib.Idle.Add(new GLib.IdleHandler(processTask));
            notify = new ThreadNotify (new ReadyEvent (ready));
        }
Esempio n. 2
0
 GetDupe(int id)
 {
     Bugzilla bugz = new Bugzilla("http://bugzilla.gnome.org/");
     BugDB.bugz = bugz;
     bug = new Bug(id,bugz);
     bug.getStacktrace(new Response(grabStacktrace,null,bug));
 }
Esempio n. 3
0
    public static void Main(string[] args)
    {
        Bugzilla bugz = new Bugzilla("http://bugzilla.gnome.org/");
        BugDB.bugz = bugz;

        DirectoryInfo di = new DirectoryInfo(cachepath);

        foreach (int i in BugDB.DB.allBugs())
        {
            if (!File.Exists("cache/"+String.Concat(i)))
            {
                BugDB.DB.remove(i);
                Console.WriteLine("removing {0}",i);
            }
        }
        //throw new Exception();

        foreach(FileInfo f in di.GetFiles())
        {
            if (f.Name.IndexOf("-")!=-1)
                continue;
            try {
                Console.WriteLine("bug? {0}",f.Name);
                int id = Int32.Parse(f.Name);
                if (BugDB.DB.getExisting(id)!=null)
                    continue;
                Console.WriteLine("Added bug {0}",id);
                Bug b = new Bug(id,bugz);
                todo.Enqueue(b);
                if (todo.Count>5)
                    break;
            }
            catch (FormatException) {} // ignore. non-id files
        }
        //throw new Exception();
        nextBug(null,null,null);
        Application.Init();
        Application.Run();
    }