/// <summary> /// Initialise a new instance of the <see cref="StrikePriceVolumeTab"/> class. /// </summary> /// <param name="tabItemStrikePriceVolume">The tab item using this user control as the content.</param> /// <param name="stockSymbolNameViewModel">The view model containing the data of stocks' symbols and corresponding names.</param> public StrikePriceVolumeTab(TabItemExt tabItemStrikePriceVolume, StockSymbolNameViewModel stockSymbolNameViewModel) { _tabItemStrikePriceVolume = tabItemStrikePriceVolume; _stockSymbolNameViewModel = stockSymbolNameViewModel; InitializeComponent(); InitialiseTab(); } // end constructor StrikePriceVolumeTab
/// <summary> /// Initialise a new instance of the <see cref="HomeWindow"/> class. /// </summary> public HomeWindow() { InitializeComponent(); // Do essential tasks before invoking this method. var productName = App.GetProductName(); WindowHome.Title = productName + " " + App.GetProductVersion(); _stockSymbolNameViewModel = new StockSymbolNameViewModel(); _systemFontFamilyNameViewModel = new SystemFontFamilyNameViewModel(); } // end constructor HomeWindow