private void btnNewJob_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var j = new JobView(); j.MdiParent = this.MdiParent; j.ShowObject(null); j.Show(); }
private void gridControl1_DoubleClick(object sender, EventArgs e) { var jinfo = (JobInfo)jobListBindingSource.Current; var data = _proxy.Context.Jobs.FirstOrDefault(j => j.JobId == jinfo.JobId); if (data != null) { var jv = new JobView(); jv.ShowObject(data); jv.JobListView = this; jv.MdiParent = this.MdiParent; jv.Show(); } }