public static DialogResult Show(Form owner, int NewsID, News News) { NewsDetail frm = new NewsDetail(); frm.newsDetailUc1.NewsID = NewsID; frm.newsDetailUc1.News = News; DialogResult result = frm.ShowDialog(owner); return(result); }
public void ViewDetail(int selectedNewsID) { DialogResult result = NewsDetail.Show(this.ParentForm, selectedNewsID, null); if (result == DialogResult.OK) { RefreshGrid(); MessageForm.Show(this.ParentForm, MsgE.InfoSaveNews); } }