예제 #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();
        }
예제 #2
0
 private void CameraGuide(object sender, RoutedEventArgs e)
 {
     TipOfTheDay.Show <CameraControlToolTip>();
 }