private void HandleViewMetadata(object sender, System.EventArgs args) { if (metadata_dialog != null) { metadata_dialog.Present(); return; } metadata_dialog = new InfoDialog(window); metadata_dialog.InfoDisplay.Photo = image_view.Item.Current; metadata_dialog.ShowAll(); metadata_dialog.Destroyed += HandleMetadataDestroyed; }
private void HandleMetadataDestroyed (object sender, System.EventArgs args) { metadata_dialog = null; }
private void HandleViewMetadata (object sender, System.EventArgs args) { if (metadata_dialog != null) { metadata_dialog.Present (); return; } metadata_dialog = new InfoDialog (window); metadata_dialog.InfoDisplay.Photo = image_view.Item.Current; metadata_dialog.ShowAll (); metadata_dialog.Destroyed += HandleMetadataDestroyed; }
private void HandleMetadataDestroyed(object sender, System.EventArgs args) { metadata_dialog = null; }