Created
May 2, 2015 15:40
-
-
Save Kanol/640af25a912bf7018170 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
namespace WindowsFormsApplication2 | |
{ | |
public partial class Form1 : Form | |
{ | |
public Form1() | |
{ | |
InitializeComponent(); | |
} | |
private void radioButton1_Click(object sender, EventArgs e) | |
{ | |
button1.Visible = true; | |
progressBar1.Visible = true; | |
} | |
private void radioButton2_CheckedChanged(object sender, EventArgs e) | |
{ | |
button1.Visible = false; | |
progressBar1.Visible = false; | |
} | |
private void button1_Click(object sender, EventArgs e) | |
{ | |
timer1.Start(); | |
} | |
private void timer1_Tick(object sender, EventArgs e) | |
{ | |
progressBar1.Value = progressBar1.Value+progressBar1.Step; | |
if (progressBar1.Value == 99) | |
{ | |
timer1.Stop(); | |
MessageBox.Show("Девушка не найдена", "Ошибка 404"); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment