Execute() public method

public Execute ( ) : void
return void
示例#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();
        }