/// <summary> /// 加载成功处理器 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void QLCallView_Load(object sender, EventArgs e) { qlConfig = QLConfigManager.GetInstance(); callManager = QLCallManager.GetInstance(); callManager.CurrentCallChanged += () => { SetCurrentCall(callManager.CurrentCall); }; }
public static QLCallManager GetInstance() { if (instance == null) { lock (lockObj) { if (instance == null) { instance = new QLCallManager(); } } } return(instance); }