Ejemplo n.º 1
0
        public CitationsTab(Paper paper, int type)
        {
            InitializeComponent();
            authorResultsListView.ColumnClick += new ColumnClickEventHandler(authorResultsListView_ColumnClick);
            authorResultsListView.FullRowSelect = true;
            authorResultsListView.MouseClick += new MouseEventHandler(authorResultsListView_MouseClick);
            authorResultsListView.MouseDoubleClick += new MouseEventHandler(authorResultsListView_MouseDoubleClick);
            authorResultsListView.DrawItem += ListView_DrawItem;
            authorResultsListView.DrawColumnHeader += ListView_DrawColumnHeader;
            abstractBox.GotFocus += abstractBox_GotFocus;

            CSParser = new CSXParser();
            GSScraper = new GSScraper();
            MSParser = new MicrosoftScholarParser();

            this.paper = paper;
            this.type = type;
            lastCount = 0;
            STOP = false;

            showStatistics();

            getCitations();
        }
Ejemplo n.º 2
0
        public search()
        {
            InitializeComponent();
            CSParser = new CSXParser();
            GSScraper = new GSScraper();
            MSParser = new MicrosoftScholarParser();
            ArrangeTree();

            siteComboBox.SelectedItem = "Google Scholar";
            graphComboBox.SelectedItem = "Publications Per Year";
            authorResultsListView.FullRowSelect = true;
            authorResultsListView.MouseClick += new MouseEventHandler(authorResultsListView_MouseClick);
            authorResultsListView.ColumnClick += new ColumnClickEventHandler(authorResultsListView_ColumnClick);
            authorResultsListView.MouseDoubleClick += new MouseEventHandler(authorResultsListView_MouseDoubleClick);
            authorResultsListView.DrawItem += ListView_DrawItem;
            authorResultsListView.DrawColumnHeader += ListView_DrawColumnHeader;

            journalResultsListView.FullRowSelect = true;
            journalResultsListView.MouseClick += new MouseEventHandler(journalResultsListView_MouseClick);
            journalResultsListView.ColumnClick += new ColumnClickEventHandler(journalResultsListView_ColumnClick);
            journalResultsListView.MouseDoubleClick += new MouseEventHandler(journalResultsListView_MouseDoubleClick);
            journalResultsListView.DrawItem += ListView_DrawItem;
            journalResultsListView.DrawColumnHeader += ListView_DrawColumnHeader;

            authorsSuggestions.MouseDoubleClick += new MouseEventHandler(authorsSuggestions_MouseClick);
            authorsSuggestions.FullRowSelect = true;
            authorsSuggestions.DrawItem += ListView_DrawItem;
            authorsSuggestions.DrawColumnHeader += ListView_DrawColumnHeader;

            recentListView.DrawItem += ListView_DrawItem;
            recentListView.DrawColumnHeader += ListView_DrawColumnHeader;
            recentListView.MouseDoubleClick+=new MouseEventHandler(recentListView_MouseDoubleClick);
            recentListView.MouseClick += new MouseEventHandler(recentListView_MouseClick);

            favouritesTreeView.MouseDoubleClick += new MouseEventHandler(favouritesTreeView_MouseDoubleClick);
            searchField.GotFocus += new EventHandler(searchField_GotFocus);
            searchField.LostFocus += new EventHandler(searchField_LostFocus);
            searchField.KeyUp += new KeyEventHandler(searchField_KeyUp);

            KeywordsTextBox.KeyUp += new KeyEventHandler(KeywordsTextBox_KeyUp);

            progressBar.SendToBack();
            progressBar.Visible = false;

            authorCheckBox.Click += new EventHandler(authorCheckBox_Click);
            journalCheckBox.Click += new EventHandler(journalCheckBox_Click);

            cachedListView.FullRowSelect = true;
            cachedListView.Click += new EventHandler(cachedListView_Click);
            cachedListView.HeaderStyle = ColumnHeaderStyle.None;
            cachedListView.SendToBack();

            KeywordsTextBox.LostFocus += new EventHandler(KeywordsTextBox_LostFocus);
            KeywordsTextBox.GotFocus += new EventHandler(KeywordsTextBox_GotFocus);

            searchField.Text = "enter author or journal name";
            KeywordsTextBox.Text = "e.g: <author>,<co-author>,<journal>,<keywords>";

            showSearch();
            STOP = false;
            lastCount = 0;
        }
Ejemplo n.º 3
0
        private void settingsOk_Click(object sender, EventArgs e)
        {
            Transition t = new Transition(new TransitionType_EaseInEaseOut(500));
            t.add(settingsPanel, "Top", -800);
            t.run();
            Console.WriteLine(cacheNumericUpDown.Value);
            Nsettings.DaysCache=(int)cacheNumericUpDown.Value;
            Nsettings.CiteSeerMaxResults=(int)citeseerNumericUpDown.Value;
            Nsettings.GSMaxResults = (int)googleNumericUpDown.Value;
            Nsettings.MASMaxResults=(int)microsoftNumericUpDown.Value;

            (NsettingsRecord).SaveSettings(Nsettings);
            CSParser = new CSXParser();
            GSScraper = new GSScraper();
            MSParser = new MicrosoftScholarParser();
        }