public void OpenSelectedItem() { var editor = new ReturnEdit(); var obj = returnBindingSource.Current as ReturnInfo; editor.ShowObject(obj); editor.MdiParent = this.MdiParent; editor.Show(); }
private void NewReturn() { var form = new NewReturn(); form.ShowObject(null); var result = form.ShowDialog(this); if (result == DialogResult.OK) { //Load IssueEdit form here var editor = new ReturnEdit(); var issue = context.ReturnInfoes.SingleOrDefault(i => i.ReturnId == form.ReturnId); editor.ShowObject(issue); editor.MdiParent = this.MdiParent; editor.Show(); RefreshList(); } }