Click or drag to resize

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

Below is the appearance of the component, as well as a code snippet with its use.

GUI Portfolio Picker Window
C#
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;
    }
}