/// <summary> /// /// </summary> public ManualMultiTradeExpertControl(ManualMultiTradeExpert expert) { InitializeComponent(); _expert = expert; _expert.Manager.SessionsUpdateEvent += new CommonSupport.GeneralHelper.GenericDelegate<ISourceAndExpertSessionManager>(SessionManager_SessionUpdateEvent); }
public override void UnInitializeControl() { if (_expert != null) { if (_expert.Manager != null) { _expert.Manager.SessionsUpdateEvent -= new CommonSupport.GeneralHelper.GenericDelegate<ISourceAndExpertSessionManager>(SessionManager_SessionUpdateEvent); } _expert = null; } base.UnInitializeControl(); }