Ejemplo n.º 1
0
        public FormAssignment(CommitteeMember chair, Form prev)
        {
            loggedChair = chair;
            InitializeComponent();
            ctrp = new ControllerPapers();
            List <Paper> paperList = (List <Paper>)ctrp.GetAllPapers();

            foreach (Paper p in paperList)
            {
                listBox1.Items.Add(p.IdP.ToString() + '.' + p.Title);
            }
            prevForm = prev;
        }
Ejemplo n.º 2
0
        public FormBidProposals(CommitteeMember cm, Form prev)
        {
            loggedUser = new CommitteeMember();
            ctrlp      = new ControllerPapers();
            ctrlb      = new ControllerBiddings();
            loggedUser = cm;
            InitializeComponent();
            List <Paper> paperList = (List <Paper>)ctrlp.GetAllPapers();

            foreach (Paper p in paperList)
            {
                CheckedListBoxProposals.Items.Add(p.IdP.ToString() + '.' + p.Title);
            }
            prevForm = prev;
        }
Ejemplo n.º 3
0
        private void GetPapers()
        {
            List <int>          reviews     = _controllerReview.GetPapersforUser(_username);
            IEnumerable <Paper> papers      = _controllerPaper.GetAllPapers();
            List <Paper>        finalPapers = new List <Paper>();

            foreach (int i in reviews)
            {
                foreach (Paper p in papers)
                {
                    if (p.IdP == i)
                    {
                        finalPapers.Add(p);
                    }
                }
            }

            listBox1.DataSource    = finalPapers;
            listBox1.DisplayMember = "Title";
        }