如何调用方法!求指教!
程序代码:
using System; using System.Collections.Generic; using using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication4 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } class Time { public void Second() { int a; for (a=DateTime.Now.Second ; ; a++) { if (a > 60) { a = 0; } } } } private void button1_Click(object sender, EventArgs e) { } } }
在private void button1_Click(object sender, EventArgs e){}中要写什么才可以调用Second这个方法呢?而已还要可以在label中显示出来!