private void OnImageBoxSelected(object sender, ImageBoxSelectedEventArgs e) { if (e.SelectedImageBox.DisplaySet == null) { UpdateEnabled(null); } }
private void OnImageBoxSelected(object sender, ImageBoxSelectedEventArgs e) { if (e.SelectedImageBox == null || e.SelectedImageBox.SelectedTile == null || e.SelectedImageBox.SelectedTile.PresentationImage == null) { SetSelectedGraphic(null); } else { SetSelectedGraphic(e.SelectedImageBox.SelectedTile.PresentationImage.SelectedGraphic); } }
private void OnImageBoxSelected(object sender, ImageBoxSelectedEventArgs e) { if (e.SelectedImageBox == null || e.SelectedImageBox.SelectedTile == null || e.SelectedImageBox.SelectedTile.PresentationImage == null) { this.SetSelectedGraphic(null, "No image is selected"); } else { this.SetSelectedGraphic(e.SelectedImageBox.SelectedTile.PresentationImage.SelectedGraphic, "An image is selected"); } }
private void OnImageBoxSelected(object sender, ImageBoxSelectedEventArgs e) { lock (_syncLock) { if (_imageBoxStrategies.ContainsKey(e.SelectedImageBox)) { _selectedImageBox = e.SelectedImageBox; } else { _selectedImageBox = null; } Monitor.PulseAll(_syncLock); } }
private void OnImageBoxSelected(object sender, ImageBoxSelectedEventArgs e) { CurrentDisplaySet = e.SelectedImageBox.DisplaySet; }
private void OnImageBoxSelected(object sender, ImageBoxSelectedEventArgs e) { if (e.SelectedImageBox.DisplaySet == null) this.UpdateEnabled(null); }