public void updateReportListView(string title, string category, string sender , DateTime from, DateTime to) { foreach (Report r in allReportsList) { if (r.Title == title && r.ReportCategory.Title == category && r.Sender == sender && r.SendDate.CompareTo(from) > 0 && r.SendDate.CompareTo(to) < 0) { allFoundReportsList.Add(r); if (r.Sender_ID == SessionInfos.login_user.Id) { sentFoundReportsList.Add(r); } if (r.Recipient_ID == SessionInfos.login_user.Id) { recievedFoundReportsList.Add(r); } } _listView.setAllReportList(allFoundReportsList); _listView.setSentReportList(sentFoundReportsList); _listView.setRecievedReportList(recievedFoundReportsList); } }
public void showReportListView() { //get needed stuff from db and fill view and then show the view _listView = new ReportListView(); _listView._controller = this; allReportsList = _db.getAllReportList(); _listView.setAllReportList(allReportsList); //sentReportsList = _db.getSentReportList(); //_listView.setAllReportList(sentReportsList); //recievedReportsList = _db.getRecievedList(); //_listView.setAllReportList(recievedReportsList); _listView.show(); }
public void showReportListView() { //get needed stuff from db and fill view and then show the view _listView = new ReportListView(); _listView._controller = this; //we have delay here //allReportsList = _db.getAllReportList(); _listView.setAllReportList(allReportsList); //sentReportsList = _db.getSentReportList(); //_listView.setSentReportList(sentReportsList); //recievedReportsList = _db.getRecievedList(); //_listView.setRecievedReportList(recievedReportsList); //_allowedSenders = _db.getAllowedSendersList(); //_listView.setSenderList(_allowedSenders); _listView.show(); }