WordPress Hosting
Free Photos
WordPress Themes

raydel 11-12-17

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 WindowsFormsApp2 { public partial class Form1 : Form { int gun_num = 0; public Form1() { InitializeComponent(); } private void button2_Click(object sender, EventArgs e) { gun_num++; switch (gun_num) { case 0: textBox1.Text = "SAS"; break; case 1: textBox1.Text = "RPG-7 launcher"; break; case 2: textBox1.Text = "pump action shotgun"; break; } } private void button1_Click_1(object sender, EventArgs e) { if (gun_num > 0) { gun_num--; switch (gun_num) { case 0: textBox1.Text = "SAS"; break; case 1: textBox1.Text = "RPG-7 launcher"; break; case 3: textBox1.Text = "pump action shotgun"; break; } } } } }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.