Example #1
0
        private void buttonExportBeatMarks_Click(object sender, EventArgs e)
        {
            if (MarkCollections.Count == 0)
            {
                MessageBox.Show("Unable to find marks collection for export");
                return;
            }

            var bDialog = new BeatMarkExportDialog();

            if (bDialog.ShowDialog() == DialogResult.OK)
            {
                if (bDialog.IsVixen3Selection)
                    ExportMarkCollections(null, "vixen3");
                if (bDialog.IsAudacitySelection)
                    ExportMarkCollections(null, "audacity");
                if (!bDialog.IsVixen3Selection && !bDialog.IsAudacitySelection)
                    MessageBox.Show("No export type selected");
            }
        }
Example #2
0
		private void buttonExportBeatMarks_Click(object sender, EventArgs e)
		{
			if (MarkCollections.Count == 0)
			{
				//messageBox Arguments are (Text, Title, No Button Visible, Cancel Button Visible)
				MessageBoxForm.msgIcon = SystemIcons.Warning; //this is used if you want to add a system icon to the message form.
				var messageBox = new MessageBoxForm("Unable to find marks collection for export", "Warning", false, false);
				messageBox.ShowDialog();
				return;
			}

			var bDialog = new BeatMarkExportDialog();

			if (bDialog.ShowDialog() == DialogResult.OK)
			{
				if (bDialog.IsVixen3Selection)
					ExportMarkCollections(null, "vixen3");
				if (bDialog.IsAudacitySelection)
					ExportMarkCollections(null, "audacity");
				if (!bDialog.IsVixen3Selection && !bDialog.IsAudacitySelection)
				{ 
					//messageBox Arguments are (Text, Title, No Button Visible, Cancel Button Visible)
					MessageBoxForm.msgIcon = SystemIcons.Warning; //this is used if you want to add a system icon to the message form.
					var messageBox = new MessageBoxForm("No export type selected", "Warning", false, false);
					messageBox.ShowDialog();
				}
			}
		}