Esempio n. 1
0
        private void btnNewJob_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var j = new JobView();

            j.MdiParent = this.MdiParent;
            j.ShowObject(null);
            j.Show();
        }
Esempio n. 2
0
        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();
            }
        }