public PhotoView(ShowPhotoInfo spi) : this() { PhotoInfo = spi; Owner = PhotoInfo.Owner; ShowPic(spi.CurrentSclerte); }
private void lvPic_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e) { PatientInfo fi = DGView.SelectedItem as PatientInfo; if (fi != null) { ShowPhotoInfo spi = new ShowPhotoInfo { OcSclerteInfo = fi.OcSclerteInfo, CurrentPhotoIndex = (ushort)lvPic.SelectedIndex, Owner = this }; AppGlobal.ShowPho.Execute(spi); } }