private void button3_Click(object sender, EventArgs e) { this.Close(); var fr = new DoTest(); fr.Show(); }
private void button1_Click(object sender, EventArgs e) { try { var uinfo = db.test.Where(w => w.Id == id).FirstOrDefault(); TestGoInfo.id = id; TestGoInfo.lvl = uinfo.lvl; TestGoInfo.descript = uinfo.description; var fr = new DoTest(); fr.Show(); } catch { } }