Наследование: BaseRenderingCommand
Пример #1
0
 public void Init()
 {
     _timeFrames = InitialFrames().ToList();
     if (!_timeFrames.Any())
     {
         return;
     }
     var message = new HistoryCommandMessage
     {
         Frames = _timeFrames,
         Callback = LoadHistory
     };
     var command = new RenderHistoryLoader(_conversationThread.Model, message);
     command.Execute();
 }
Пример #2
0
        private void LoadHistory(TimeFrameParam param)
        {
            var removeControl = new RemoveHistoryLoader(_conversationThread.Model);
            removeControl.Execute();

            RenderHistory(param);
            DisableTimeFrames(param);

            if (!_timeFrames.Last().Enabled)
            {
                return;
            }
            var message = new HistoryCommandMessage
            {
                Frames = _timeFrames,
                Callback = LoadHistory
            };

            var addControl = new RenderHistoryLoader(_conversationThread.Model, message);
            addControl.Execute();
        }