using System;
using System.Windows.Forms;
namespace demo1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
m1();
m2();
}
private void m1() {
for (int i = 0; i < 10; i++)
{
Console.WriteLine("m1:"+i.ToString());
System.Threading.Thread.Sleep(1000);
}
}
private void m2()
{
for (int i = 0; i < 10; i++)
{
Console.WriteLine("m2:"+i.ToString());
System.Threading.Thread.Sleep(1000);
}
}
}
}