Esempio n. 1
0
        private void lvQuotes_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            QuotesList_ViewModel vm = DataContext as QuotesList_ViewModel;

            if (vm != null)
            {
                vm.ChangeDimensions(e.NewSize.Height, e.NewSize.Width);
            }
        }
Esempio n. 2
0
        private void ShowFrontPage()
        {
            QuotesList_ViewModel tab = this.TabsCollection.FirstOrDefault(t => t.DisplayName == QuotesList_ViewModel.MyName)
                                       as QuotesList_ViewModel;

            if (tab == null)
            {
                tab = QuotesList_ViewModel.Instance;
                this.TabsCollection.Add(tab);
            }

            this.SetActiveTab(tab);
        }