-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathForm1.cs
67 lines (57 loc) · 2.36 KB
/
Form1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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 ShoppyGenerator_by_mmodsgtav
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
textBox4.Text = "# \r\n.\r\n* Replace ()\r\n* Vehículo ELS\r\n* \r\n\r\n[¿Tienes dudas o problemas técnicos? Consulta aquí las preguntas frecuentes.](https://mmodsgtav.es/faq)\r\n\r\nImportante: este producto está sujeto a los [términos de uso](https://mmds.ml/tos), que se entienden como leídos y aceptados una vez comprado el producto.\r\n\r\nImágenes:\r\n";
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
updateText();
}
private void updateText()
{
String titulo = textBox1.Text;
String replace = listBox1.Text;
String description = textBox2.Text;
String images = "\n";
for (int i = 1; i <= numericUpDown1.Value; i++)
{
images += $"\r\n\r\n";
}
textBox4.Text = $"# {titulo}\r\n{description}\r\n* Replace ({replace})\r\n* Vehículo ELS\r\n* \r\n\r\n[¿Tienes dudas o problemas técnicos? Consulta aquí las preguntas frecuentes.](https://mmodsgtav.es/faq)\r\n\r\nImportante: este producto está sujeto a los [términos de uso](https://mmds.ml/tos), que se entienden como leídos y aceptados una vez comprado el producto.\r\n\r\nImágenes:\r{images}";
}
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
updateText();
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
updateText();
}
private void textBox3_TextChanged(object sender, EventArgs e)
{
updateText();
}
private void numericUpDown1_ValueChanged(object sender, EventArgs e)
{
updateText();
}
private void button1_Click(object sender, EventArgs e)
{
System.Windows.Forms.Clipboard.SetText(textBox4.Text);
button1.Text = "¡COPIADO!";
}
}
}