예제 #1
0
        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();
            }
        }
예제 #2
0
        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();
            }
        }