public void RemovePhoto(string n) { LPhotoHeaderItem ti = getItem(n); if (ti != null) { comboBoxControl.Items.Remove(ti); comboBoxControl.SelectedItem = null; if (TargetControl.getPhoto() == ti.TargetPhoto) { TargetControl.Clear(); } ti.Clear(); } }
public void RemovePhoto(WriteableBitmap b) { if (b == null) { return; } LPhotoHeaderItem ti = getItem(b); if (ti != null) { comboBoxControl.Items.Remove(ti); comboBoxControl.SelectedItem = null; if (TargetControl.getPhoto() == ti.TargetPhoto) { TargetControl.Clear(); } ti.Clear(); } }