public frmAddUpdateNews(News pNews, frmNews frmNews) { InitializeComponent(); this.Height = Screen.PrimaryScreen.Bounds.Height - 50; this.News_Reflected = pNews; this.frmNews = frmNews; // this for to take clone of news and when save it will reflect to original if (News_Reflected != null) { this.News_NotReflected = (News)pNews.Clone(); } else { this.News_NotReflected = new News(); this.News_NotReflected.DateAndTime = DateTime.Now; } this.DataContext = this.News_NotReflected; SetValues(); }