private void barButtonItemInfo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (doctorInfo == null || doctorInfo.IsDisposed) { doctorInfo = new FormDoctorInfo(doctor); doctorInfo.MdiParent = this; doctorInfo.Show(); } }
private void LoadInfoForm() { if (doctorInfo == null || doctorInfo.IsDisposed) { doctorInfo = new FormDoctorInfo(doctor); doctorInfo.MdiParent = this; doctorInfo.Show(); MemoryStream mem = new MemoryStream(doctor.Picture); barButtonItemInfo.ImageOptions.LargeImage = Image.FromStream(mem); } }