コード例 #1
0
 public CRequestController(DbCenter db, ClientCommunication c)
 {
     _db = db;
     _cc = c;
     _sendRequestView    = new VSendRequest();
     _recivedRequestView = new VRecievedRequest();
     _sentRequestView    = new VSentRequest();
     _requestListView    = new VRequestList();
 }
コード例 #2
0
        public void ShowSendRequestForm()
        {
            if (_sendRequestView == null)
            {
                _sendRequestView = new VSendRequest();
            }

            _sendRequestView.SetController(this);
            _sendRequestView.Date.Content = DateTime.Today;
            _allowedRecipients            = _db.ReportCenter.getAllowedRecipientsList();
            foreach (User usr in _allowedRecipients)
            {
                ComboboxItem item = new ComboboxItem();
                item.Text  = usr.FirstName + " " + usr.LastName + " - " + usr.RoleName;
                item.Value = usr.Id;
                _sendRequestView.Recipients.Items.Add(item);
            }
            _sendRequestView.Show();
        }