void ShowPic_Click(object sender, EventArgs e) { Program.TimerReset(); var eb = sender as Button; var ab = this.Controls[this.Controls.IndexOfKey("attend" + eb.Tag.ToString())] as Button; var c = list[(int)ab.Tag]; Program.PeopleId = c.cinfo.pid; var f = new CommonPicture(); f.ShowDialog(); }
void ShowPic_Click(object sender, EventArgs e) { Program.TimerReset(); var eb = sender as Button; var ab = this.Controls[this.Controls.IndexOfKey("attend" + eb.Tag.ToString())] as Button; var c = list[(int)ab.Tag]; Program.PeopleId = c.pid; var f = new CommonPicture(); f.ShowDialog(); }