public void Shutdown() { View.SetModel(_contentView, null); if (_staffingCalculatorPresenter != null) { _staffingCalculatorPresenter.Shutdown(); } _staffingCalculatorPresenter = null; _getAgents = null; _getViewRange = null; _container = null; _contentView = null; }
public void Run(IDictionary args) { _staffingCalculatorPresenter.SaftyInvoke(p => p.Deactivate()); if (_staffingCalculatorPresenter == null) { args["service"] = this; _staffingCalculatorPresenter = _container.Resolve <IStaffingChartPresenter>(args); UIThread.BeginInvoke(() => View.SetModel(_contentView, _staffingCalculatorPresenter)); } else { _staffingCalculatorPresenter.Activate(); } }
public void Run(IDictionary args) { _staffingCalculatorPresenter.SaftyInvoke(p => p.Deactivate()); if (_staffingCalculatorPresenter == null) { args["service"] = this; _staffingCalculatorPresenter = _container.Resolve<IStaffingChartPresenter>(args); UIThread.BeginInvoke(() => View.SetModel(_contentView, _staffingCalculatorPresenter)); } else { _staffingCalculatorPresenter.Activate(); } }
public void Shutdown() { View.SetModel(_contentView, null); if (_staffingCalculatorPresenter != null) _staffingCalculatorPresenter.Shutdown(); _staffingCalculatorPresenter = null; _getAgents = null; _getViewRange = null; _container = null; _contentView = null; }