Пример #1
0
        private void HandleItemChanged(object sender, BrowsablePointerChangedEventArgs old)
        {
            BrowsablePointer pointer = sender as BrowsablePointer;
            if (pointer == null)
                return;

            directory_view.FocusCell = pointer.Index;
            directory_view.Selection.Clear ();
            if (collection.Count > 0) {
                directory_view.Selection.Add (directory_view.FocusCell);
                directory_view.ScrollTo (directory_view.FocusCell);
            }
        }
Пример #2
0
        private void SetIndex(int value, IBrowsableItemChanges changes)
        {
            BrowsablePointerChangedEventArgs args = new BrowsablePointerChangedEventArgs (Current, index, changes);

            index = value;
            item = Current;

            if (Changed != null)
                Changed (this, args);
        }
Пример #3
0
 void ViewItemChanged(object sender, BrowsablePointerChangedEventArgs e)
 {
 }
Пример #4
0
 private void HandleItemChanged(object sender, BrowsablePointerChangedEventArgs args)
 {
     Photo = item.Current as Photo;
 }
Пример #5
0
 protected override void ItemChanged(object sender, BrowsablePointerChangedEventArgs args)
 {
     Sensitive = item.Index < item.Collection.Count -1;
 }
Пример #6
0
        protected virtual void ItemChanged(object sender, 
						    BrowsablePointerChangedEventArgs args)
        {
            Sensitive = item.IsValid;
        }
Пример #7
0
 protected override void ItemChanged(object sender, BrowsablePointerChangedEventArgs args)
 {
     Sensitive =  item.Index > 0;
 }
Пример #8
0
 private void HandleItemChanged(object sender, BrowsablePointerChangedEventArgs args)
 {
     if (scroll.ControlBox.Visible)
         scroll.ShowControls ();
 }