private void dlg_FormClosing(object sender, System.Windows.Forms.FormClosingEventArgs e) { if (m_callback != null) { m_callback.Closing(); m_callback = null; } }
/// <summary> /// Close the user interface of a Gym. /// </summary> /// <param name="nId">Specifies the Gym id (used when multiple Gym's of the same name are used).</param> public void CloseUi(int nId) { if (!m_rgGyms.ContainsKey(nId)) { return; } m_rgGyms[nId].Hide(); if (m_callback != null) { m_callback.Closing(); m_callback = null; } }
/// <summary> /// The constructor. /// </summary> public MyCaffeGymUiService() { m_callback = OperationContext.Current.GetCallbackChannel <IXMyCaffeGymUiCallback>(); }