public void Clear()
 {
     Observables.Clear();
     Observers.Clear();
     SubjectFactories.Clear();
     SubscriptionFactories.Clear();
     Other.Clear();
     Subscriptions.Clear();
     Subjects.Clear();
     ReliableSubscriptions.Clear();
 }
Example #2
0
        public override void Create(MessageConsole console)
        {
            Other.Clear();
            Other.AddRange(Answers.Select(t => ConsoleObjects.CreateFromString(t.Item2)));

            ComputePositions(console);

            for (var i = 0; i < Other.Count; i++)
            {
                Other[i].Position = Positions[i];
            }

            PointerIndex = StartIndex;

            Text.Position = console.Position + new Point(1, 1) + TextPositionOffset;
        }