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