示例#1
0
        public void NotifyNodeChanged(INode node)
        {
            var path = node.Parent?.Path ?? new TreePath();

            NodesChanged?.Invoke(this, new TreeModelEventArgs(path, new object[] { node }));
            Changed?.Invoke(this, EventArgs.Empty);
        }
示例#2
0
#pragma warning restore 67

        public void OnNodeChanged(Node parent, int index, Node node)
        {
            if (parent != null)
            {
                TreePath path = GetPath(parent);
                if (path != null)
                {
                    NodesChanged?.Invoke(this, new TreeModelEventArgs(path, new[] { index }, new object[] { node }));
                }
            }
        }
示例#3
0
 public override void OnNodesChanged(ITabularObject nodeItem)
 {
     if (UpdateLocks > 0)
     {
         nodeChangedItemsCount++;
         return;
     }
     else
     {
         var path = GetPath(nodeItem);
         NodesChanged?.Invoke(this, new TreeModelEventArgs(path, new object[] { }));
     }
 }
 void DebuggerSettings_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     switch (e.PropertyName)
     {
     case nameof(DebuggerSettings.SortParameters):
     case nameof(DebuggerSettings.SortLocals):
     case nameof(DebuggerSettings.GroupParametersAndLocalsTogether):
     case nameof(DebuggerSettings.ShowCompilerGeneratedVariables):
     case nameof(DebuggerSettings.ShowDecompilerGeneratedVariables):
         NodesChanged?.Invoke(this, EventArgs.Empty);
         break;
     }
 }
示例#5
0
        void RefreshNodes_UI()
        {
            uiDispatcher.VerifyAccess();
            var info = TryGetLanguage();

            if (info.language != language)
            {
                language = info.language;
                LanguageChanged?.Invoke(this, EventArgs.Empty);
            }
            bool newIsReadOnly = info.frame == null;

            NodesChanged?.Invoke(this, EventArgs.Empty);
            SetIsReadOnly_UI(newIsReadOnly);
        }
示例#6
0
 internal void OnNodesChanged(TreeModelEventArgs args)
 {
     NodesChanged?.Invoke(this, args);
 }
 void DbgObjectIdService_ObjectIdsChanged(object sender, EventArgs e) => NodesChanged?.Invoke(this, EventArgs.Empty);
示例#8
0
 protected internal override void ChildHasChanged(BaseNode child)
 {
     NodesChanged?.Invoke(this);
 }
示例#9
0
 protected void OnNodesChanged()
 {
     NodesChanged?.Invoke(this, new EventArgs());
 }