private void gridControl2_DoubleClick(object sender, EventArgs e) { var obj = (TrainingFeedback)feedBackListBindingSource.Current; var fv = new TrainingFeedbackView(); fv.ShowObject(obj); fv.ShowDialog(); AuthorizeForm(); }
private void addFeedBackBarButton_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var fv = new TrainingFeedbackView(); fv.ShowObject(null); var result = fv.ShowDialog(); if (result == DialogResult.OK) { _training.TrainingFeedback.Add(fv.FeedBack); } }