Пример #1
0
        private void CmdHelpAbout_Executed(object sender, ExecutedEventArgs e)
        {
            var project     = visualizer.Editor.Project;
            var projectName = project.SaveFilePath ?? string.Empty;

            projectName = projectName.ToLowerInvariant();
            var easterEggEnabled = projectName.Contains("sakuma") && projectName.Contains("mayu");

            FAbout.ShowDialog(this, easterEggEnabled);
        }
Пример #2
0
 public static void ShowDialog(IWin32Window parent, bool easterEggEnabled)
 {
     using (var f = new FAbout()) {
         f._easterEggEnabled = easterEggEnabled;
         f.MonitorLocalizationChange();
         f.Localize(LanguageManager.Current);
         f.ShowDialog(parent);
         f.UnmonitorLocalizationChange();
     }
 }