コード例 #1
0
        private void ContentRemoved(object sender, EventArgsContentRemoved e)
        {
            EventHandler <EventArgsContentRemoved> ev = EventContentRemoved;

            if (ev != null)
            {
                ev(this, e);
            }
        }
コード例 #2
0
ファイル: Browser.cs プロジェクト: daviddw/oss-public
        private void ContentRemoved(object sender, EventArgsContentRemoved e)
        {
            Lock();
            bool changed = false;
            int  index   = iLocation.Containers.IndexOf(sender as IContainer);

            if (index != -1 && (index == iLocation.Containers.Count - 1 || iLocation.Containers[index + 1].Id == e.Id))
            {
                changed = true;
            }
            Unlock();

            if (changed)
            {
                if (EventLocationChanged != null)
                {
                    EventLocationChanged(this, EventArgs.Empty);
                }
            }
        }