Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public void ViewDetail(int selectedNewsID)
        {
            DialogResult result = NewsDetail.Show(this.ParentForm, selectedNewsID, null);

            if (result == DialogResult.OK)
            {
                RefreshGrid();
                MessageForm.Show(this.ParentForm, MsgE.InfoSaveNews);
            }
        }