Пример #1
0
        public Search()
        {
            this.Build();
            // F**k stupid notebook tabs and monodeveop have to do it myself
            s=new Searches();
            this.addtabwithicon("icn_voice-pvtfocus.png","People",s);

            ps=new PlacesSearch();
            this.addtabwithicon("icon_place.png","Places",ps);

            es=new EventsSearch();
            this.addtabwithicon("icon_event.png","Events",es);

            gs=new GroupSearch();
            this.addtabwithicon("icn_voice-groupfocus.png", "Groups", gs);
        }
Пример #2
0
        public new void Dispose()
        {
            Gtk.Notebook p;
            p=(Gtk.Notebook)this.Parent;
            p.RemovePage(p.PageNum(this));

            //TODO KILL CHILD SEARCHES FROM HERE?
            if(s!=null)
                s.Dispose();
            s=null;
            if(ps!=null)
                ps.Dispose();
            ps=null;
            if(es!=null)
                es.Dispose();
            es=null;
            if(gs!=null)
                gs.Dispose();
            gs=null;
        }