public CRequestController(DbCenter db, ClientCommunication c) { _db = db; _cc = c; _sendRequestView = new VSendRequest(); _recivedRequestView = new VRecievedRequest(); _sentRequestView = new VSentRequest(); _requestListView = new VRequestList(); }
public void ShowReceivedRequestForm() { if (_recivedRequestView == null) { _recivedRequestView = new VRecievedRequest(); } _recivedRequestView.SetController(this); _recivedRequestView.current_request = null; // set selected request _recivedRequestView.Show(); }