1 write to _behaviorStack
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
72
_behaviorStack
= [];
13 references to _behaviorStack
System.Windows.Forms.Design (13)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (13)
144
public Behavior? CurrentBehavior =>
_behaviorStack
.Count > 0 ?
_behaviorStack
[0] : null;
339
if (
_behaviorStack
.Count > 0)
341
int index =
_behaviorStack
.IndexOf(behavior);
342
if ((index != -1) && (index <
_behaviorStack
.Count - 1))
344
return
_behaviorStack
[index + 1];
389
if (
_behaviorStack
.Count == 0)
394
int index =
_behaviorStack
.IndexOf(behavior);
401
_behaviorStack
.RemoveAt(index);
432
_behaviorStack
.Insert(0, behavior);
522
if (
_behaviorStack
is [Behavior behavior, ..])
573
return
_behaviorStack
.Count > 0 ?
_behaviorStack
[0] : g?.Behavior;