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(); }
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(); }