コード例 #1
0
 public void showReportView(Report rep)
 {
     if (rep != null)
     {
         //get needed stuff from selected report and fill view and then show it
         _view             = new ReportView();
         _view._controller = this;
         _view.report      = rep;
         setReportViewFields(rep, _view);
         _view.show();
     }
 }
コード例 #2
0
 public void setReportViewFields(Report r, ReportView rV)
 {
     rV.title_l.Content  = r.Title;
     rV.sender_l.Content = r.Sender;
     if (r.ReportCategory != null)
     {
         rV.reportCategory_l.Content = r.ReportCategory.Title;
     }
     rV.description_tbl.Text = r.Description;
     if (r.Attachment != null)
     {
         rV.attachments_tbl.Text = r.Attachment.FileLocation;
     }
 }