/// <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
Exemple #2
0
        /// <summary>
        /// Initialise a new instance of the <see cref="SettingsWindow"/> class.
        /// </summary>
        /// <param name="systemFontFamilyNameViewModel">A <see cref="SystemFontFamilyNameViewModel"/> object to load data of the system's font family names.</param>
        public SettingsWindow(SystemFontFamilyNameViewModel systemFontFamilyNameViewModel)
        {
            _systemFontFamilyNameViewModel = systemFontFamilyNameViewModel;

            InitializeComponent();
            InitialiseGeneral();
            InitialiseTable();
            InitialiseExportingAndAbout();
        } // end constructor SettingsWindow