private void button1_Click(object sender, EventArgs e) { using (StoreInPlanDialog frm = new StoreInPlanDialog()) { frm.ShowDialog(); if (frm.HeadContent.StoreInPlanNum != null) { HeadContent = frm.HeadContent; ModelClone = (StoreInPlanHead)HeadContent.Clone(); } } txtStoreInPlanNum.Text = HeadContent.StoreInPlanNum; SetHeaderContent(HeadContent); }
private void button1_Click(object sender, EventArgs e) { var list = _repo.GetAll(0).ToList(); using (StoreInPlanDialog frm = new StoreInPlanDialog(epiSession, list)) { frm.ShowDialog(); if (frm.HeadContent.StoreInPlanNum != null) { HeadContent = frm.HeadContent; ModelClone = (StoreInPlanHeadModel)HeadContent.Clone(); } } txtStoreInPlanNum.Text = HeadContent.StoreInPlanNum; SetHeaderContent(HeadContent); }