Exemplo n.º 1
0
        internal static void Show <T>() where T : ITipOfTheDay, new()
        {
            var tipOfTheDay  = new TipOfTheDay();
            var tipViewModel = tipOfTheDay.DataContext as TipOfTheDayViewModel;

            if (tipViewModel == null)
            {
                return;
            }
            tipViewModel.TipOfTheDay = new T();
            tipOfTheDay.ShowDialog();
        }
Exemplo n.º 2
0
 private void CameraGuide(object sender, RoutedEventArgs e)
 {
     TipOfTheDay.Show <CameraControlToolTip>();
 }