コード例 #1
0
ファイル: SourceView.cs プロジェクト: SyaskiMasyaski/banshee
        private void OnSourceRowInserted(object o, SourceRowEventArgs args)
        {
            args.Source.UserNotifyUpdated += OnSourceUserNotifyUpdated;

            if (args.Source.Parent != null && args.Source.Parent.AutoExpand == true)
            {
                Expand(args.ParentIter);
            }

            if (args.Source.Expanded || args.Source.AutoExpand == true)
            {
                Expand(args.Iter);
            }

            UpdateView();
        }
コード例 #2
0
        private void OnSourceRowInserted(object o, SourceRowEventArgs args)
        {
            args.Source.UserNotifyUpdated += OnSourceUserNotifyUpdated;

            if (args.Source.Parent != null && args.Source.Parent.AutoExpand == true)
            {
                Expand(args.ParentIter);
            }

            if (args.Source.Expanded || args.Source.AutoExpand == true)
            {
                Expand(args.Iter);
            }

            UpdateView();

            if (args.Source.Properties.Get <bool> ("NotifyWhenAdded"))
            {
                args.Source.NotifyUser();
            }
        }
コード例 #3
0
 private void OnSourceRowRemoved (object o, SourceRowEventArgs args)
 {
     args.Source.UserNotifyUpdated -= OnSourceUserNotifyUpdated;
     UpdateView ();
 }
コード例 #4
0
        private void OnSourceRowInserted (object o, SourceRowEventArgs args)
        {
            args.Source.UserNotifyUpdated += OnSourceUserNotifyUpdated;

            if (args.Source.Parent != null && args.Source.Parent.AutoExpand == true) {
                Expand (args.ParentIter);
            }

            if (args.Source.Expanded || args.Source.AutoExpand == true) {
                Expand (args.Iter);
            }

            UpdateView ();

            if (args.Source.Properties.Get<bool> ("NotifyWhenAdded")) {
                args.Source.NotifyUser ();
            }
        }
コード例 #5
0
 private void OnSourceRowRemoved(object o, SourceRowEventArgs args)
 {
     args.Source.UserNotifyUpdated -= OnSourceUserNotifyUpdated;
     UpdateView();
 }
コード例 #6
0
ファイル: SourceView.cs プロジェクト: directhex/banshee-hacks
        private void OnSourceRowInserted (object o, SourceRowEventArgs args)
        {
            args.Source.UserNotifyUpdated += OnSourceUserNotifyUpdated;

            if (args.Source.Parent != null && args.Source.Parent.AutoExpand == true) {
                Expand (args.ParentIter);
            }

            if (args.Source.Expanded || args.Source.AutoExpand == true) {
                Expand (args.Iter);
            }

            UpdateView ();
        }