65 lines
1.8 KiB
C#
65 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
using JD.Soundwich.Core.Documents;
|
|
using JD.Soundwich.Core.SounwichStudio.OldSoundwich.Models;
|
|
using Plume.WPF.Commands;
|
|
|
|
namespace JD.Soundwich.Controls
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for ExportMenu.xaml
|
|
/// </summary>
|
|
public partial class ExportMenu : MenuItem
|
|
{
|
|
public ExportMenu()
|
|
{
|
|
CleanAudition = new DelegateCommand(CleanAuditionCommand);
|
|
ExportAudition = new DelegateCommand(ExportAuditionCommand);
|
|
ExportAllAudition = new DelegateCommand(ExportAllAuditionCommand);
|
|
InitializeComponent();
|
|
}
|
|
|
|
public ICommand CleanAudition { get; }
|
|
|
|
private void CleanAuditionCommand()
|
|
{
|
|
if (LastSelectedDocument != null)
|
|
{
|
|
ProjectProvider.Current.CleanAuditionFolder();
|
|
}
|
|
}
|
|
|
|
public ICommand ExportAudition { get; }
|
|
|
|
private void ExportAuditionCommand()
|
|
{
|
|
if (LastSelectedDocument != null)
|
|
{
|
|
ProjectProvider.Current.ExportAudition();
|
|
}
|
|
}
|
|
public ICommand ExportAllAudition { get; }
|
|
|
|
public WorkspaceDocumentView LastSelectedDocument { get; set; }
|
|
|
|
private void ExportAllAuditionCommand()
|
|
{
|
|
if (LastSelectedDocument != null)
|
|
{
|
|
ProjectProvider.Current.ExportAllAudition();
|
|
}
|
|
}
|
|
}
|
|
}
|