Version 0.5 as marked by the folder name.

This commit is contained in:
2021-01-21 13:51:12 -06:00
parent f7de3650a3
commit d418457d4e
10 changed files with 39258 additions and 59 deletions
+10
View File
@@ -6,13 +6,23 @@ EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms
Release|x86 = Release|x86
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0FB61987-8BC2-48D8-B12D-5400DFC818A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {0FB61987-8BC2-48D8-B12D-5400DFC818A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0FB61987-8BC2-48D8-B12D-5400DFC818A3}.Debug|Any CPU.Build.0 = Debug|Any CPU {0FB61987-8BC2-48D8-B12D-5400DFC818A3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0FB61987-8BC2-48D8-B12D-5400DFC818A3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{0FB61987-8BC2-48D8-B12D-5400DFC818A3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{0FB61987-8BC2-48D8-B12D-5400DFC818A3}.Debug|x86.ActiveCfg = Debug|Any CPU
{0FB61987-8BC2-48D8-B12D-5400DFC818A3}.Release|Any CPU.ActiveCfg = Release|Any CPU {0FB61987-8BC2-48D8-B12D-5400DFC818A3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0FB61987-8BC2-48D8-B12D-5400DFC818A3}.Release|Any CPU.Build.0 = Release|Any CPU {0FB61987-8BC2-48D8-B12D-5400DFC818A3}.Release|Any CPU.Build.0 = Release|Any CPU
{0FB61987-8BC2-48D8-B12D-5400DFC818A3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{0FB61987-8BC2-48D8-B12D-5400DFC818A3}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{0FB61987-8BC2-48D8-B12D-5400DFC818A3}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
Binary file not shown.
+5 -5
View File
@@ -8,9 +8,9 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTitle("SoundBoard")] [assembly: AssemblyTitle("SoundBoard")]
[assembly: AssemblyDescription("The best of YouTube")] [assembly: AssemblyDescription("The best of YouTube")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")] [assembly: AssemblyCompany("MacroHard")]
[assembly: AssemblyProduct("SoundBoard")] [assembly: AssemblyProduct("I Like Trains")]
[assembly: AssemblyCopyright("Copyright © 2015")] [assembly: AssemblyCopyright("Copyright © 2015 RCD Industries")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.2.5.0")] [assembly: AssemblyVersion("0.5.0.0")]
[assembly: AssemblyFileVersion("0.2.5.0")] [assembly: AssemblyFileVersion("0.5.0.0")]
+41
View File
@@ -11,6 +11,21 @@
<AssemblyName>SoundBoard</AssemblyName> <AssemblyName>SoundBoard</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
@@ -53,6 +68,12 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="aboutForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="aboutForm.Designer.cs">
<DependentUpon>aboutForm.cs</DependentUpon>
</Compile>
<Compile Include="mainForm.cs"> <Compile Include="mainForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@@ -61,6 +82,9 @@
</Compile> </Compile>
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="aboutForm.resx">
<DependentUpon>aboutForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="mainForm.resx"> <EmbeddedResource Include="mainForm.resx">
<DependentUpon>mainForm.cs</DependentUpon> <DependentUpon>mainForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
@@ -89,6 +113,23 @@
<ItemGroup> <ItemGroup>
<Content Include="favico.ico" /> <Content Include="favico.ico" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.5">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.5 %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishUrlHistory>publish\</PublishUrlHistory>
<InstallUrlHistory />
<SupportUrlHistory />
<UpdateUrlHistory />
<BootstrapperUrlHistory />
<ErrorReportUrlHistory />
<FallbackCulture>en-US</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
</PropertyGroup>
</Project>
+149
View File
@@ -0,0 +1,149 @@
namespace SoundBoard
{
partial class aboutForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(aboutForm));
this.doctorIMayBeAHomosexual = new System.Windows.Forms.PictureBox();
this.applicationVersionLabel = new System.Windows.Forms.Label();
this.asdfLabel = new System.Windows.Forms.Label();
this.lordBalgruufPortrait = new System.Windows.Forms.PictureBox();
this.RCDIndustriesCopyrightLabel = new System.Windows.Forms.Label();
this.macroHardProgrammerLabel = new System.Windows.Forms.Label();
this.lordBalgruuftheGreaterLabel = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.doctorIMayBeAHomosexual)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lordBalgruufPortrait)).BeginInit();
this.SuspendLayout();
//
// doctorIMayBeAHomosexual
//
this.doctorIMayBeAHomosexual.Image = ((System.Drawing.Image)(resources.GetObject("doctorIMayBeAHomosexual.Image")));
this.doctorIMayBeAHomosexual.Location = new System.Drawing.Point(12, 102);
this.doctorIMayBeAHomosexual.Name = "doctorIMayBeAHomosexual";
this.doctorIMayBeAHomosexual.Size = new System.Drawing.Size(180, 160);
this.doctorIMayBeAHomosexual.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.doctorIMayBeAHomosexual.TabIndex = 0;
this.doctorIMayBeAHomosexual.TabStop = false;
//
// applicationVersionLabel
//
this.applicationVersionLabel.AutoSize = true;
this.applicationVersionLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.applicationVersionLabel.Location = new System.Drawing.Point(108, 9);
this.applicationVersionLabel.Name = "applicationVersionLabel";
this.applicationVersionLabel.Size = new System.Drawing.Size(194, 60);
this.applicationVersionLabel.TabIndex = 1;
this.applicationVersionLabel.Text = "YouTube Soundboard \r\n\r\nVersion 0.5.0.0\r\n";
//
// asdfLabel
//
this.asdfLabel.AutoSize = true;
this.asdfLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.asdfLabel.Location = new System.Drawing.Point(24, 79);
this.asdfLabel.Name = "asdfLabel";
this.asdfLabel.Size = new System.Drawing.Size(157, 20);
this.asdfLabel.TabIndex = 2;
this.asdfLabel.Text = "Including asdf Movie!";
//
// lordBalgruufPortrait
//
this.lordBalgruufPortrait.Image = ((System.Drawing.Image)(resources.GetObject("lordBalgruufPortrait.Image")));
this.lordBalgruufPortrait.Location = new System.Drawing.Point(209, 102);
this.lordBalgruufPortrait.Name = "lordBalgruufPortrait";
this.lordBalgruufPortrait.Size = new System.Drawing.Size(180, 160);
this.lordBalgruufPortrait.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.lordBalgruufPortrait.TabIndex = 3;
this.lordBalgruufPortrait.TabStop = false;
//
// RCDIndustriesCopyrightLabel
//
this.RCDIndustriesCopyrightLabel.AutoSize = true;
this.RCDIndustriesCopyrightLabel.Location = new System.Drawing.Point(20, 275);
this.RCDIndustriesCopyrightLabel.Name = "RCDIndustriesCopyrightLabel";
this.RCDIndustriesCopyrightLabel.Size = new System.Drawing.Size(164, 13);
this.RCDIndustriesCopyrightLabel.TabIndex = 4;
this.RCDIndustriesCopyrightLabel.Text = "Copyright © 2015 RCD Industries";
//
// macroHardProgrammerLabel
//
this.macroHardProgrammerLabel.AutoSize = true;
this.macroHardProgrammerLabel.Location = new System.Drawing.Point(231, 275);
this.macroHardProgrammerLabel.Name = "macroHardProgrammerLabel";
this.macroHardProgrammerLabel.Size = new System.Drawing.Size(136, 26);
this.macroHardProgrammerLabel.TabIndex = 5;
this.macroHardProgrammerLabel.Text = "Programmed by MacroHard\r\na RCD Industries subsidiary";
//
// lordBalgruuftheGreaterLabel
//
this.lordBalgruuftheGreaterLabel.AutoSize = true;
this.lordBalgruuftheGreaterLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lordBalgruuftheGreaterLabel.Location = new System.Drawing.Point(230, 79);
this.lordBalgruuftheGreaterLabel.Name = "lordBalgruuftheGreaterLabel";
this.lordBalgruuftheGreaterLabel.Size = new System.Drawing.Size(127, 20);
this.lordBalgruuftheGreaterLabel.TabIndex = 6;
this.lordBalgruuftheGreaterLabel.Text = "And total ballerz!";
//
// aboutForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(410, 310);
this.Controls.Add(this.lordBalgruuftheGreaterLabel);
this.Controls.Add(this.macroHardProgrammerLabel);
this.Controls.Add(this.RCDIndustriesCopyrightLabel);
this.Controls.Add(this.lordBalgruufPortrait);
this.Controls.Add(this.asdfLabel);
this.Controls.Add(this.applicationVersionLabel);
this.Controls.Add(this.doctorIMayBeAHomosexual);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "aboutForm";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "About YouTube SoundBoard";
this.TopMost = true;
((System.ComponentModel.ISupportInitialize)(this.doctorIMayBeAHomosexual)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lordBalgruufPortrait)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.PictureBox doctorIMayBeAHomosexual;
private System.Windows.Forms.Label applicationVersionLabel;
private System.Windows.Forms.Label asdfLabel;
private System.Windows.Forms.PictureBox lordBalgruufPortrait;
private System.Windows.Forms.Label RCDIndustriesCopyrightLabel;
private System.Windows.Forms.Label macroHardProgrammerLabel;
private System.Windows.Forms.Label lordBalgruuftheGreaterLabel;
}
}
+20
View File
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SoundBoard
{
public partial class aboutForm : Form
{
public aboutForm()
{
InitializeComponent();
}
}
}
File diff suppressed because it is too large Load Diff
+42 -29
View File
@@ -32,18 +32,19 @@
this.btnRandom = new System.Windows.Forms.Button(); this.btnRandom = new System.Windows.Forms.Button();
this.mainMenu = new System.Windows.Forms.MenuStrip(); this.mainMenu = new System.Windows.Forms.MenuStrip();
this.mainMenuFile = new System.Windows.Forms.ToolStripMenuItem(); this.mainMenuFile = new System.Windows.Forms.ToolStripMenuItem();
this.mainMenuFileShowOnDisk = new System.Windows.Forms.ToolStripMenuItem();
this.mainMenuFileExit = new System.Windows.Forms.ToolStripMenuItem(); this.mainMenuFileExit = new System.Windows.Forms.ToolStripMenuItem();
this.randSettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.randSettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.mainMenuPlayAll = new System.Windows.Forms.ToolStripMenuItem(); this.mainMenuPlayAll = new System.Windows.Forms.ToolStripMenuItem();
this.mainMenuHelp = new System.Windows.Forms.ToolStripMenuItem();
this.mainMenuHelpAbout = new System.Windows.Forms.ToolStripMenuItem();
this.randomIterationNumericUpDown = new System.Windows.Forms.NumericUpDown(); this.randomIterationNumericUpDown = new System.Windows.Forms.NumericUpDown();
this.mainMenuFileShowOnDisk = new System.Windows.Forms.ToolStripMenuItem();
this.asdfMovieTabPage = new System.Windows.Forms.TabPage(); this.asdfMovieTabPage = new System.Windows.Forms.TabPage();
this.asdfMovieListBox = new System.Windows.Forms.ListBox(); this.asdfMovieListBox = new System.Windows.Forms.ListBox();
this.gamerPoopTabPage = new System.Windows.Forms.TabPage(); this.gamerPoopTabPage = new System.Windows.Forms.TabPage();
this.gamerPoopListBox = new System.Windows.Forms.ListBox(); this.gamerPoopListBox = new System.Windows.Forms.ListBox();
this.soundboardTabControl = new System.Windows.Forms.TabControl(); this.soundboardTabControl = new System.Windows.Forms.TabControl();
this.mainMenuHelp = new System.Windows.Forms.ToolStripMenuItem(); this.loopSelectedSoundCheckBox = new System.Windows.Forms.CheckBox();
this.mainMenuHelpAbout = new System.Windows.Forms.ToolStripMenuItem();
this.mainMenu.SuspendLayout(); this.mainMenu.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.randomIterationNumericUpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.randomIterationNumericUpDown)).BeginInit();
this.asdfMovieTabPage.SuspendLayout(); this.asdfMovieTabPage.SuspendLayout();
@@ -82,6 +83,13 @@
this.mainMenuFile.Size = new System.Drawing.Size(37, 20); this.mainMenuFile.Size = new System.Drawing.Size(37, 20);
this.mainMenuFile.Text = "&File"; this.mainMenuFile.Text = "&File";
// //
// mainMenuFileShowOnDisk
//
this.mainMenuFileShowOnDisk.Name = "mainMenuFileShowOnDisk";
this.mainMenuFileShowOnDisk.Size = new System.Drawing.Size(161, 22);
this.mainMenuFileShowOnDisk.Text = "&Show in Explorer";
this.mainMenuFileShowOnDisk.Click += new System.EventHandler(this.mainMenuFileShowOnDisk_Click);
//
// mainMenuFileExit // mainMenuFileExit
// //
this.mainMenuFileExit.Name = "mainMenuFileExit"; this.mainMenuFileExit.Name = "mainMenuFileExit";
@@ -100,11 +108,25 @@
// mainMenuPlayAll // mainMenuPlayAll
// //
this.mainMenuPlayAll.CheckOnClick = true; this.mainMenuPlayAll.CheckOnClick = true;
this.mainMenuPlayAll.Enabled = false;
this.mainMenuPlayAll.Name = "mainMenuPlayAll"; this.mainMenuPlayAll.Name = "mainMenuPlayAll";
this.mainMenuPlayAll.Size = new System.Drawing.Size(152, 22); this.mainMenuPlayAll.Size = new System.Drawing.Size(113, 22);
this.mainMenuPlayAll.Text = "Play &All"; this.mainMenuPlayAll.Text = "Play &All";
// //
// mainMenuHelp
//
this.mainMenuHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.mainMenuHelpAbout});
this.mainMenuHelp.Name = "mainMenuHelp";
this.mainMenuHelp.Size = new System.Drawing.Size(44, 20);
this.mainMenuHelp.Text = "&Help";
//
// mainMenuHelpAbout
//
this.mainMenuHelpAbout.Name = "mainMenuHelpAbout";
this.mainMenuHelpAbout.Size = new System.Drawing.Size(107, 22);
this.mainMenuHelpAbout.Text = "A&bout";
this.mainMenuHelpAbout.Click += new System.EventHandler(this.mainMenuHelpAbout_Click);
//
// randomIterationNumericUpDown // randomIterationNumericUpDown
// //
this.randomIterationNumericUpDown.Location = new System.Drawing.Point(94, 548); this.randomIterationNumericUpDown.Location = new System.Drawing.Point(94, 548);
@@ -122,20 +144,13 @@
0, 0,
0}); 0});
// //
// mainMenuFileShowOnDisk
//
this.mainMenuFileShowOnDisk.Name = "mainMenuFileShowOnDisk";
this.mainMenuFileShowOnDisk.Size = new System.Drawing.Size(161, 22);
this.mainMenuFileShowOnDisk.Text = "&Show in Explorer";
this.mainMenuFileShowOnDisk.Click += new System.EventHandler(this.mainMenuFileShowOnDisk_Click);
//
// asdfMovieTabPage // asdfMovieTabPage
// //
this.asdfMovieTabPage.Controls.Add(this.asdfMovieListBox); this.asdfMovieTabPage.Controls.Add(this.asdfMovieListBox);
this.asdfMovieTabPage.Location = new System.Drawing.Point(4, 22); this.asdfMovieTabPage.Location = new System.Drawing.Point(4, 22);
this.asdfMovieTabPage.Name = "asdfMovieTabPage"; this.asdfMovieTabPage.Name = "asdfMovieTabPage";
this.asdfMovieTabPage.Padding = new System.Windows.Forms.Padding(3); this.asdfMovieTabPage.Padding = new System.Windows.Forms.Padding(3);
this.asdfMovieTabPage.Size = new System.Drawing.Size(410, 486); this.asdfMovieTabPage.Size = new System.Drawing.Size(410, 480);
this.asdfMovieTabPage.TabIndex = 1; this.asdfMovieTabPage.TabIndex = 1;
this.asdfMovieTabPage.Text = "ASDF Movie"; this.asdfMovieTabPage.Text = "ASDF Movie";
this.asdfMovieTabPage.UseVisualStyleBackColor = true; this.asdfMovieTabPage.UseVisualStyleBackColor = true;
@@ -146,7 +161,7 @@
this.asdfMovieListBox.Location = new System.Drawing.Point(-4, -2); this.asdfMovieListBox.Location = new System.Drawing.Point(-4, -2);
this.asdfMovieListBox.Margin = new System.Windows.Forms.Padding(0); this.asdfMovieListBox.Margin = new System.Windows.Forms.Padding(0);
this.asdfMovieListBox.Name = "asdfMovieListBox"; this.asdfMovieListBox.Name = "asdfMovieListBox";
this.asdfMovieListBox.Size = new System.Drawing.Size(416, 485); this.asdfMovieListBox.Size = new System.Drawing.Size(418, 485);
this.asdfMovieListBox.TabIndex = 0; this.asdfMovieListBox.TabIndex = 0;
// //
// gamerPoopTabPage // gamerPoopTabPage
@@ -155,7 +170,7 @@
this.gamerPoopTabPage.Location = new System.Drawing.Point(4, 22); this.gamerPoopTabPage.Location = new System.Drawing.Point(4, 22);
this.gamerPoopTabPage.Name = "gamerPoopTabPage"; this.gamerPoopTabPage.Name = "gamerPoopTabPage";
this.gamerPoopTabPage.Padding = new System.Windows.Forms.Padding(3); this.gamerPoopTabPage.Padding = new System.Windows.Forms.Padding(3);
this.gamerPoopTabPage.Size = new System.Drawing.Size(410, 486); this.gamerPoopTabPage.Size = new System.Drawing.Size(410, 480);
this.gamerPoopTabPage.TabIndex = 0; this.gamerPoopTabPage.TabIndex = 0;
this.gamerPoopTabPage.Text = "Gamer Poop"; this.gamerPoopTabPage.Text = "Gamer Poop";
this.gamerPoopTabPage.UseVisualStyleBackColor = true; this.gamerPoopTabPage.UseVisualStyleBackColor = true;
@@ -176,29 +191,26 @@
this.soundboardTabControl.Location = new System.Drawing.Point(7, 27); this.soundboardTabControl.Location = new System.Drawing.Point(7, 27);
this.soundboardTabControl.Name = "soundboardTabControl"; this.soundboardTabControl.Name = "soundboardTabControl";
this.soundboardTabControl.SelectedIndex = 0; this.soundboardTabControl.SelectedIndex = 0;
this.soundboardTabControl.Size = new System.Drawing.Size(418, 512); this.soundboardTabControl.Size = new System.Drawing.Size(418, 506);
this.soundboardTabControl.TabIndex = 2; this.soundboardTabControl.TabIndex = 2;
// //
// mainMenuHelp // loopSelectedSoundCheckBox
// //
this.mainMenuHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.loopSelectedSoundCheckBox.AutoSize = true;
this.mainMenuHelpAbout}); this.loopSelectedSoundCheckBox.Location = new System.Drawing.Point(158, 549);
this.mainMenuHelp.Name = "mainMenuHelp"; this.loopSelectedSoundCheckBox.Name = "loopSelectedSoundCheckBox";
this.mainMenuHelp.Size = new System.Drawing.Size(44, 20); this.loopSelectedSoundCheckBox.Size = new System.Drawing.Size(129, 17);
this.mainMenuHelp.Text = "&Help"; this.loopSelectedSoundCheckBox.TabIndex = 5;
// this.loopSelectedSoundCheckBox.Text = "Loop Selected Sound";
// mainMenuHelpAbout this.loopSelectedSoundCheckBox.UseVisualStyleBackColor = true;
// this.loopSelectedSoundCheckBox.CheckedChanged += new System.EventHandler(this.loopSelectedSoundCheckBox_CheckedChanged);
this.mainMenuHelpAbout.Name = "mainMenuHelpAbout";
this.mainMenuHelpAbout.Size = new System.Drawing.Size(152, 22);
this.mainMenuHelpAbout.Text = "A&bout";
this.mainMenuHelpAbout.Click += new System.EventHandler(this.mainMenuHelpAbout_Click);
// //
// formMain // formMain
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(425, 578); this.ClientSize = new System.Drawing.Size(425, 578);
this.Controls.Add(this.loopSelectedSoundCheckBox);
this.Controls.Add(this.randomIterationNumericUpDown); this.Controls.Add(this.randomIterationNumericUpDown);
this.Controls.Add(this.soundboardTabControl); this.Controls.Add(this.soundboardTabControl);
this.Controls.Add(this.btnRandom); this.Controls.Add(this.btnRandom);
@@ -237,6 +249,7 @@
private System.Windows.Forms.TabControl soundboardTabControl; private System.Windows.Forms.TabControl soundboardTabControl;
private System.Windows.Forms.ToolStripMenuItem mainMenuHelp; private System.Windows.Forms.ToolStripMenuItem mainMenuHelp;
private System.Windows.Forms.ToolStripMenuItem mainMenuHelpAbout; private System.Windows.Forms.ToolStripMenuItem mainMenuHelpAbout;
private System.Windows.Forms.CheckBox loopSelectedSoundCheckBox;
} }
} }
+101 -25
View File
@@ -5,7 +5,7 @@ using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading;
using System.Windows.Forms; using System.Windows.Forms;
using System.IO; using System.IO;
using System.Media; using System.Media;
@@ -18,29 +18,46 @@ namespace SoundBoard
public SoundPlayer player = new SoundPlayer(); public SoundPlayer player = new SoundPlayer();
public Random randomNum = new Random(); public Random randomNum = new Random();
bool willLoopSound = false;
public formMain() public formMain()
{ {
InitializeComponent(); InitializeComponent();
//create event handlers for onClick events in the ListBoxes //create event handlers for onClick events in the ListBoxes
gamerPoopListBox.MouseClick += new MouseEventHandler(gamerPoopListBox_Click); gamerPoopListBox.MouseClick += new MouseEventHandler(soundListBox_OnLeftClick);
asdfMovieListBox.MouseClick += new MouseEventHandler(asdfMovieListBox_Click); asdfMovieListBox.MouseClick += new MouseEventHandler(soundListBox_OnLeftClick);
} }
private void gamerPoopListBox_Click(object sender, MouseEventArgs e) private void soundListBox_OnLeftClick(object sender, MouseEventArgs e)
{ {
string fullPath = Path.GetFullPath("gamer_poop/") + gamerPoopListBox.SelectedItem + ".wav"; if (soundboardTabControl.SelectedIndex == 0)
player.SoundLocation = fullPath; {
player.Load(); string fullPath = Path.GetFullPath("gamer_poop/") + gamerPoopListBox.SelectedItem + ".wav";
player.Play(); player.SoundLocation = fullPath;
} player.Load();
if (willLoopSound)
private void asdfMovieListBox_Click(object sender, MouseEventArgs e) {
{ player.PlayLooping();
string fullPath = Path.GetFullPath("asdfmovie/") + asdfMovieListBox.SelectedItem + ".wav"; }
player.SoundLocation = fullPath; else
player.Load(); {
player.Play(); player.Play();
}
}
else if (soundboardTabControl.SelectedIndex == 1)
{
string fullPath = Path.GetFullPath("asdfmovie/") + asdfMovieListBox.SelectedItem + ".wav";
player.SoundLocation = fullPath;
player.Load();
if (willLoopSound)
{
player.PlayLooping();
}
else
{
player.Play();
}
}
} }
private void formMain_Load(object sender, EventArgs e) private void formMain_Load(object sender, EventArgs e)
@@ -60,18 +77,27 @@ namespace SoundBoard
private void btnRandom_Click(object sender, EventArgs e) private void btnRandom_Click(object sender, EventArgs e)
{ {
int iterations = (int)randomIterationNumericUpDown.Value; int iterations = (int)randomIterationNumericUpDown.Value;
string fullPath; string fullPath;
//disable the Random Button and the NumericUpDown box //disable the Random Button and the NumericUpDown box
btnRandom.Enabled = false; btnRandom.Enabled = false;
randomIterationNumericUpDown.Enabled = false; randomIterationNumericUpDown.Enabled = false;
loopSelectedSoundCheckBox.Enabled = false;
if (mainMenuPlayAll.Checked == true)
{
playRandomSoundBothColumns(iterations);
btnRandom.Enabled = true;
randomIterationNumericUpDown.Enabled = true;
loopSelectedSoundCheckBox.Enabled = true;
return;
}
for (int i = 0; i < iterations; i++) for (int i = 0; i < iterations; i++)
{ {
int tempRandomNumber; int tempRandomNumber;
if (this.soundboardTabControl.SelectedIndex == 0) if (soundboardTabControl.SelectedIndex == 0)
{ {
tempRandomNumber = randomNum.Next(gamerPoopListBox.Items.Count - 1); tempRandomNumber = randomNum.Next(gamerPoopListBox.Items.Count - 1);
gamerPoopListBox.SelectedIndex = tempRandomNumber; gamerPoopListBox.SelectedIndex = tempRandomNumber;
@@ -80,7 +106,7 @@ namespace SoundBoard
player.Load(); player.Load();
player.PlaySync(); player.PlaySync();
} }
else if (this.soundboardTabControl.SelectedIndex == 1) else if (soundboardTabControl.SelectedIndex == 1)
{ {
tempRandomNumber = randomNum.Next(asdfMovieListBox.Items.Count - 1); tempRandomNumber = randomNum.Next(asdfMovieListBox.Items.Count - 1);
asdfMovieListBox.SelectedIndex = tempRandomNumber; asdfMovieListBox.SelectedIndex = tempRandomNumber;
@@ -91,24 +117,68 @@ namespace SoundBoard
} }
else else
{ {
MessageBox.Show("The " + soundboardTabControl.SelectedTab.Text + " tab has no sounds to play.", "No Sounds to Play"); MessageBox.Show("The " + soundboardTabControl.SelectedTab.Text + " tab has no sounds to play.", "No Waves Here");
return;
} }
} }
//re-enable the controls //renable the controls
btnRandom.Enabled = true; btnRandom.Enabled = true;
randomIterationNumericUpDown.Enabled = true; randomIterationNumericUpDown.Enabled = true;
loopSelectedSoundCheckBox.Enabled = true;
} }
private void mainMenuFileExit_Click(object sender, EventArgs e) private void loopSelectedSoundCheckBox_CheckedChanged(object sender, EventArgs e)
{ {
Close(); if (loopSelectedSoundCheckBox.Checked == true)
{
willLoopSound = true;
}
else
{
willLoopSound = false;
player.Stop();
}
}
private void playRandomSoundBothColumns(int iterations)
{
int tempRandomNumber = 0;
int incrementor = 0;
string soundPath;
while (incrementor < iterations)
{
Random rand = new Random();
tempRandomNumber = rand.Next(0, 200);
if (tempRandomNumber <= 100)
{
soundboardTabControl.SelectedIndex = 0;
tempRandomNumber = randomNum.Next(gamerPoopListBox.Items.Count - 1);
gamerPoopListBox.SelectedIndex = tempRandomNumber;
soundPath = Path.GetFullPath("gamer_poop/") + gamerPoopListBox.SelectedItem + ".wav";
player.SoundLocation = soundPath;
player.Load();
player.PlaySync();
}
else
{
soundboardTabControl.SelectedIndex = 1;
tempRandomNumber = randomNum.Next(asdfMovieListBox.Items.Count - 1);
asdfMovieListBox.SelectedIndex = tempRandomNumber;
soundPath = Path.GetFullPath("asdfmovie/") + asdfMovieListBox.SelectedItem + ".wav";
player.SoundLocation = soundPath;
player.Load();
player.PlaySync();
}
incrementor++;
}
} }
private void mainMenuFileShowOnDisk_Click(object sender, EventArgs e) private void mainMenuFileShowOnDisk_Click(object sender, EventArgs e)
{ {
string filePath; string filePath;
string arg; string arg;
if (soundboardTabControl.SelectedIndex == 0) if (soundboardTabControl.SelectedIndex == 0)
{ {
filePath = Path.GetFullPath("gamer_poop/") + gamerPoopListBox.SelectedItem + ".wav"; filePath = Path.GetFullPath("gamer_poop/") + gamerPoopListBox.SelectedItem + ".wav";
@@ -129,7 +199,13 @@ namespace SoundBoard
private void mainMenuHelpAbout_Click(object sender, EventArgs e) private void mainMenuHelpAbout_Click(object sender, EventArgs e)
{ {
MessageBox.Show("YouTube Soundboard\nVersion: 0.2.5.0\nBuilt in .NET 4.5\nAnd way to lazy to create a pretty About Form.", "YouTube Soundboard"); aboutForm aboutDialogForm = new aboutForm();
aboutDialogForm.ShowDialog();
}
private void mainMenuFileExit_Click(object sender, EventArgs e)
{
Close();
} }
} }
} }