private void btn_OK_Click(object sender, EventArgs e) { Form pd; this.SaveData(); //if (hadTray) //{ // pd = new PickDetailHadTray(this.current); //} //else //{ pd = new PickDetail(this.current); //} pd.Show(); pd.Closed += new EventHandler(pd_Closed); this.Hide(); }