Portfolio picker window
PortfolioPickerWindow is the window for selecting a portfolio. The window displays a list of portfolios and information about the cash positions of portfolios.
Main properties
- PortfolioPickerWindow.Portfolios - the list of portfolios.
- PortfolioPickerWindow.SelectedPortfolio - the selected portfolio.
Below is the code snippet with its use.
private void Button_Click(object sender, RoutedEventArgs e)
{
var wnd = new PortfolioPickerWindow();
if (Portfolios != null)
wnd.Portfolios = Portfolios;
if (wnd.ShowModal(this))
{
SelectedPortfolio = wnd.SelectedPortfolio;
}
}