using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using static QuikDawEditor.EDITING.StaticProperties; namespace QuikDawEditor; public partial class EditorWindow { #if DEBUG public bool IsDebugging { get; set; } = true; #else public bool IsDebugging { get; set; } = false; #endif private void ShowMessageBoxMenuItem_Click(object sender, RoutedEventArgs e) { DebuggingPanel.Visibility = DebuggingPanel.IsVisible ? Visibility.Hidden : Visibility.Visible; } private void LoadMainTestFile_Click(object sender, RoutedEventArgs e) { //For debugging use only CloseAudioResources(); //Delete new project if was new project if (!Directory.Exists(EditingProjectPath) || Directory.GetFiles(EditingProjectPath).Where(f => Path.GetExtension(f) == ".qdd").Count() == 0) { try { Directory.Delete(editingProject.ProjectDirectory, true); } catch (Exception ex) { MessageBox.Show("Created directory seems to have been changed. Will exit.\n" + ex.Message); } } undoActions.Clear(); //LoadProject(@"D:\UTIL\QuikDawData\Projects\AoiUsagi\AoiUsagi.qdd"); LoadProject(@"D:\UTIL\QuikDawData\Projects\Test48\Test48.qdd"); //LoadProject(@"D:\UTIL\QuikDawData\Projects\ClonedAoiUsagi\ClonedAoiUsagi.qdd"); //LoadProject(@"D:\UTIL\QuikDawData\Projects\UnknownMONO\UnknownMono.qdd"); //LoadProject(@"D:\UTIL\QuikDawData\Projects\SaveMe\SaveMetest.qdd"); //LoadProject(@"D:\UTIL\QuikDawData\Projects\LoopCloud\LoopCloud.qdd"); //LoadProject(@"D:\UTIL\QuikDawData\Projects\TestClipClicking\TestClipClicking.qdd"); //LoadProject(@"D:\UTIL\QuikDawData\Projects\MidiClicking\MidiClicking.qdd"); } private void ToggleUndos_Click(object sender, RoutedEventArgs e) { UndosPanel.Visibility = UndosPanel.Visibility == Visibility.Visible ? Visibility.Collapsed : Visibility.Visible; } }