Skip to content

Commit ed797bb

Browse files
committed
- Si el archivo de sonido no es válido, dará un error después de la reproducción.
-Termina implementación de controlador de reproductor multimedia. - Cambio de versión en el ensamblado. - Corrección de los textos en formulario.
1 parent 590cebd commit ed797bb

10 files changed

Lines changed: 763 additions & 570 deletions

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// Puede especificar todos los valores o establecer como predeterminados los números de versión de compilación y de revisión
3333
// mediante el asterisco ('*'), como se muestra a continuación:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("0.9.5.0")]
36-
[assembly: AssemblyFileVersion("0.9.5.0")]
35+
[assembly: AssemblyVersion("0.9.7.0")]
36+
[assembly: AssemblyFileVersion("0.9.7.0")]

Sobreclick.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
</EmbeddedResource>
108108
<EmbeddedResource Include="sc_config.en.resx">
109109
<DependentUpon>sc_config.cs</DependentUpon>
110+
<SubType>Designer</SubType>
110111
</EmbeddedResource>
111112
<EmbeddedResource Include="sc_config.resx">
112113
<DependentUpon>sc_config.cs</DependentUpon>

sc_config.Designer.cs

Lines changed: 19 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sc_config.cs

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using System.Windows.Forms;
99
using System.Configuration;
1010
using static System.Resources.ResXFileRef;
11+
using System.Media;
1112

1213
namespace Sobreclick
1314
{
@@ -76,9 +77,9 @@ private void button1_Click(object sender, EventArgs e)
7677
break;
7778
}
7879
}
79-
else if (!sonConfDir.EndsWith(".wav"))
80+
else
8081
{
81-
MessageBox.Show(rm.GetString("msgErrorLoadingSound"), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
82+
guardarCambiosConf();
8283
}
8384
}
8485
else
@@ -142,7 +143,6 @@ private void turnarConfigSonido()
142143
textBox4.Enabled = false;
143144
button3.Enabled = false;
144145
button4.Enabled = false;
145-
textBox4.Text = "";
146146
sonSistemaPreferido = true;
147147
break;
148148
}
@@ -170,7 +170,7 @@ private void button3_Click(object sender, EventArgs e)
170170
{
171171
using (OpenFileDialog cargarSon = new OpenFileDialog())
172172
{
173-
cargarSon.Filter = "Archivos de sonido compatibles (*.wav)|*.wav";
173+
cargarSon.Filter = "WaveForm Audio Format (*.wav)|*.wav";
174174
if (cargarSon.ShowDialog() == DialogResult.OK && cargarSon.FileName.EndsWith(".wav"))
175175
{
176176
var fs = cargarSon.OpenFile();
@@ -182,5 +182,18 @@ private void button3_Click(object sender, EventArgs e)
182182
}
183183
}
184184
}
185+
186+
private void button4_Click(object sender, EventArgs e)
187+
{
188+
try
189+
{
190+
SoundPlayer testingSound = new SoundPlayer(textBox4.Text);
191+
testingSound.Play();
192+
}
193+
catch (Exception E)
194+
{
195+
MessageBox.Show(rm.GetString("msgErrorLoadingSound"), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
196+
}
197+
}
185198
}
186199
}

sc_config.resx

Lines changed: 78 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,78 @@
390390
<data name="&gt;&gt;groupBox1.ZOrder" xml:space="preserve">
391391
<value>4</value>
392392
</data>
393+
<data name="&gt;&gt;checkBox1.Name" xml:space="preserve">
394+
<value>checkBox1</value>
395+
</data>
396+
<data name="&gt;&gt;checkBox1.Type" xml:space="preserve">
397+
<value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
398+
</data>
399+
<data name="&gt;&gt;checkBox1.Parent" xml:space="preserve">
400+
<value>groupBox2</value>
401+
</data>
402+
<data name="&gt;&gt;checkBox1.ZOrder" xml:space="preserve">
403+
<value>0</value>
404+
</data>
405+
<data name="&gt;&gt;button4.Name" xml:space="preserve">
406+
<value>button4</value>
407+
</data>
408+
<data name="&gt;&gt;button4.Type" xml:space="preserve">
409+
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
410+
</data>
411+
<data name="&gt;&gt;button4.Parent" xml:space="preserve">
412+
<value>groupBox2</value>
413+
</data>
414+
<data name="&gt;&gt;button4.ZOrder" xml:space="preserve">
415+
<value>1</value>
416+
</data>
417+
<data name="&gt;&gt;textBox4.Name" xml:space="preserve">
418+
<value>textBox4</value>
419+
</data>
420+
<data name="&gt;&gt;textBox4.Type" xml:space="preserve">
421+
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
422+
</data>
423+
<data name="&gt;&gt;textBox4.Parent" xml:space="preserve">
424+
<value>groupBox2</value>
425+
</data>
426+
<data name="&gt;&gt;textBox4.ZOrder" xml:space="preserve">
427+
<value>2</value>
428+
</data>
429+
<data name="&gt;&gt;button3.Name" xml:space="preserve">
430+
<value>button3</value>
431+
</data>
432+
<data name="&gt;&gt;button3.Type" xml:space="preserve">
433+
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
434+
</data>
435+
<data name="&gt;&gt;button3.Parent" xml:space="preserve">
436+
<value>groupBox2</value>
437+
</data>
438+
<data name="&gt;&gt;button3.ZOrder" xml:space="preserve">
439+
<value>3</value>
440+
</data>
441+
<data name="groupBox2.Location" type="System.Drawing.Point, System.Drawing">
442+
<value>160, 30</value>
443+
</data>
444+
<data name="groupBox2.Size" type="System.Drawing.Size, System.Drawing">
445+
<value>220, 108</value>
446+
</data>
447+
<data name="groupBox2.TabIndex" type="System.Int32, mscorlib">
448+
<value>15</value>
449+
</data>
450+
<data name="groupBox2.Text" xml:space="preserve">
451+
<value>Sonido</value>
452+
</data>
453+
<data name="&gt;&gt;groupBox2.Name" xml:space="preserve">
454+
<value>groupBox2</value>
455+
</data>
456+
<data name="&gt;&gt;groupBox2.Type" xml:space="preserve">
457+
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
458+
</data>
459+
<data name="&gt;&gt;groupBox2.Parent" xml:space="preserve">
460+
<value>$this</value>
461+
</data>
462+
<data name="&gt;&gt;groupBox2.ZOrder" xml:space="preserve">
463+
<value>0</value>
464+
</data>
393465
<data name="checkBox1.AutoSize" type="System.Boolean, mscorlib">
394466
<value>True</value>
395467
</data>
@@ -489,33 +561,9 @@
489561
<data name="&gt;&gt;button3.ZOrder" xml:space="preserve">
490562
<value>3</value>
491563
</data>
492-
<data name="groupBox2.Location" type="System.Drawing.Point, System.Drawing">
493-
<value>160, 30</value>
494-
</data>
495-
<data name="groupBox2.Size" type="System.Drawing.Size, System.Drawing">
496-
<value>220, 108</value>
497-
</data>
498-
<data name="groupBox2.TabIndex" type="System.Int32, mscorlib">
499-
<value>15</value>
500-
</data>
501-
<data name="groupBox2.Text" xml:space="preserve">
502-
<value>Sonido</value>
503-
</data>
504-
<data name="&gt;&gt;groupBox2.Name" xml:space="preserve">
505-
<value>groupBox2</value>
506-
</data>
507-
<data name="&gt;&gt;groupBox2.Type" xml:space="preserve">
508-
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
509-
</data>
510-
<data name="&gt;&gt;groupBox2.Parent" xml:space="preserve">
511-
<value>$this</value>
512-
</data>
513-
<data name="&gt;&gt;groupBox2.ZOrder" xml:space="preserve">
514-
<value>0</value>
515-
</data>
516-
<data name="$this.Localizable" type="System.Boolean, mscorlib">
564+
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
517565
<value>True</value>
518-
</data>
566+
</metadata>
519567
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
520568
<value>6, 13</value>
521569
</data>
@@ -5586,16 +5634,16 @@
55865634
<data name="&gt;&gt;$this.Type" xml:space="preserve">
55875635
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
55885636
</data>
5589-
<data name="msgEqual" xml:space="preserve">
5637+
<data name="msgEqual" xml:space="preserve">
55905638
<value>Algunas teclas están repetidas. Revísalas y vuelve a intentarlo.</value>
55915639
</data>
5592-
<data name="msgErrorSaving" xml:space="preserve">
5640+
<data name="msgErrorSaving" xml:space="preserve">
55935641
<value>Error inesperado al guardar el archivo de configuración. Revisa que tengas lo permisos adecuados y vuelve a intentarlo.</value>
55945642
</data>
5595-
<data name="msgSonDefault" xml:space="preserve">
5643+
<data name="msgSonDefault" xml:space="preserve">
55965644
<value>No has seleccionado un archivo de sonido. ¿Deseas usar el del sistema?</value>
55975645
</data>
5598-
<data name="msgErrorLoadingSound" xml:space="preserve">
5646+
<data name="msgErrorLoadingSound" xml:space="preserve">
55995647
<value>El archivo especificado no es válido</value>
56005648
</data>
56015649
</root>

0 commit comments

Comments
 (0)