Example #1
0
        public ShowDocument(string docId)
        {
            _docId = docId;
            InitializeComponent();
            rm  = new RetrievalManager();
            _da = new DBAccessor();

            getDocument();
        }
Example #2
0
 public AdminPanel(SearchForm ParentForm, string UserName)
 {
     _searchForm = ParentForm;
     InitializeComponent();
     rm  = new RetrievalManager();
     _da = new DBAccessor();
     Greating_lbl.Text       = string.Format("Hello, {0}", UserName);
     SearchRes_Table.Padding = new Padding(0, 0, SystemInformation.VerticalScrollBarWidth + 10, 0);
 }
        public Term(string TermTxt, int Hits, string FileId)
        {
            DBAccessor db = new DBAccessor();

            this.TermTxt = TermTxt;
            this.Hits    = Hits;
            this.FileId  = FileId;

            int tmpId = db.GetTermId(TermTxt);

            if (tmpId.CompareTo(-1) == 0)
            {
                db.AddNewTerm(TermTxt);
                this.Term_id = db.GetTermId(TermTxt);
            }
            else
            {
                this.Term_id = tmpId;
            }
        }