示例#1
0
        public static void ShowDialog([CanBeNull] IWin32Window parent, [NotNull] ProjectDocument project, Difficulty difficulty)
        {
            var score = project.Project.GetScore(difficulty);

            if (score == null)
            {
                return;
            }

            using (var f = new FExportTxt()) {
                f._score = score;
                f.Localize(LanguageManager.Current);
                f.MonitorLocalizationChange();
                f.ShowDialog(parent);
                f.UnmonitorLocalizationChange();
            }
        }
 private void CmdToolsExportTxt_Executed(object sender, ExecutedEventArgs e)
 {
     FExportTxt.ShowDialog(this, visualizer.Editor.Project, visualizer.Editor.Difficulty);
 }