private void button2_Click(object sender, EventArgs e) { 家谱管理 f = new 家谱管理(); f.Show(); this.Close(); }
private void Panel1_Click(object sender, EventArgs e) { 家谱管理 f1 = new 家谱管理(); f1.Closed += new EventHandler(this.f1_Closed); f1.Closed += (obj, args) => { Application.Exit(); }; f1.Show(); this.Close(); }