Shares can be handled by owners
This commit is contained in:
@ -13,6 +13,7 @@ using System.Windows.Forms;
|
||||
using System.Text.Json;
|
||||
using System.IO;
|
||||
using Helpers;
|
||||
using StockBL.Interface;
|
||||
|
||||
namespace StockInfo
|
||||
{
|
||||
@ -23,6 +24,7 @@ namespace StockInfo
|
||||
private readonly IPersonRepository _personRepository;
|
||||
private readonly IAddressRepository _addressRepository;
|
||||
private readonly IStockPersonConnect _stockPersonConnect;
|
||||
private readonly IPersonStockFacade _personStockFacade;
|
||||
private frmRegisterStock regWindow;
|
||||
private frmMyStocks stockWindow;
|
||||
private frmSelling sellWindow;
|
||||
@ -35,7 +37,8 @@ namespace StockInfo
|
||||
IStockMarketRepository stockMarketRepository,
|
||||
IPersonRepository personRepository,
|
||||
IAddressRepository addressRepository,
|
||||
IStockPersonConnect stockPersonConnect)
|
||||
IStockPersonConnect stockPersonConnect,
|
||||
IPersonStockFacade personStockFacade)
|
||||
{
|
||||
InitializeComponent();
|
||||
_stockRepository = stockMemberRepository;
|
||||
@ -43,6 +46,7 @@ namespace StockInfo
|
||||
_personRepository = personRepository;
|
||||
_addressRepository = addressRepository;
|
||||
_stockPersonConnect = stockPersonConnect;
|
||||
_personStockFacade = personStockFacade;
|
||||
}
|
||||
|
||||
private void Form1_Load(object sender, EventArgs e)
|
||||
@ -191,7 +195,7 @@ namespace StockInfo
|
||||
else
|
||||
{
|
||||
var person = _personRepository.GetPersonById(SelectedPersonId);
|
||||
personShareConnect = new frmPersonShareConnect();
|
||||
personShareConnect = new frmPersonShareConnect(_personStockFacade,_stockPersonConnect,_stockRepository);
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
personShareConnect.ConnectPerson = person;
|
||||
Cursor.Current = DefaultCursor;
|
||||
|
||||
Reference in New Issue
Block a user