public void selectLayer(MeasurementData.BScanLayerItem item) { // find target combobox item foreach (var comboItem in comboBox.Items) { var comboBoxAngioLayerItem = comboItem as ComboItemAngioLayer; if (comboBoxAngioLayerItem.LayerItem.Name == item.Name) { comboBox.SelectedItem = comboBoxAngioLayerItem; } } }
private void notifyChanges() { MeasurementData.BScanLayerItem upperLayer = MeasurementData.kLayerILM; MeasurementData.BScanLayerItem lowerLayer = MeasurementData.kLayerILM; int upperOffset = 0; int lowerOffset = 0; if (layerSelectorUpper.layerSelector.comboBox.SelectedItem != null) { upperLayer = (layerSelectorUpper.layerSelector.comboBox.SelectedItem as ComboLayerSelector.ComboItemAngioLayer).LayerItem; upperOffset = Int32.Parse(layerSelectorUpper.layerOffset.Text); } if (layerSelectorLower.layerSelector.comboBox.SelectedItem != null) { lowerLayer = (layerSelectorLower.layerSelector.comboBox.SelectedItem as ComboLayerSelector.ComboItemAngioLayer).LayerItem; lowerOffset = Int32.Parse(layerSelectorLower.layerOffset.Text); } LayerSettingsChanged(upperLayer, upperOffset, lowerLayer, lowerOffset); }
private void BscanViewer_od_LayerSettingsChanged(MeasurementData.BScanLayerItem arg1, int arg2, MeasurementData.BScanLayerItem arg3, int arg4) { // TODO //throw new NotImplementedException(); }
private void LayerSelectorUpper_ItemSettingChanged(MeasurementData.BScanLayerItem arg1, int arg2) { notifyChanges(); }
public void setLayerSettings(MeasurementData.BScanLayerItem upperLayer, int upperOffset, MeasurementData.BScanLayerItem lowerLayer, int lowerOffset) { layerSelectorUpper.setLayerSettings(upperLayer, upperOffset); layerSelectorLower.setLayerSettings(lowerLayer, lowerOffset); }
private void BscanViewer_LayerSettingsChanged(MeasurementData.BScanLayerItem upperLayer, int upperLayerOffset, MeasurementData.BScanLayerItem lowerLayer, int lowerLayerOffset) { // TODO : update angio graphy //throw new NotImplementedException(); }
private void LayerSelector_ItemSelected(MeasurementData.BScanLayerItem obj) { ItemSettingChanged(obj, 0); }
public void setLayerSettings(MeasurementData.BScanLayerItem layer, int offset) { layerSelector.selectLayer(layer); layerOffset.Text = offset.ToString(); }
private void LayerSelectorUpper_ItemSettingChanged(MeasurementData.BScanLayerItem layerItem, int offset) { notifyChanges(); }
public ComboItemAngioLayer(MeasurementData.BScanLayerItem item) { LayerItem = item; DataContext = this; }