Пример #1
0
 private void dlg_FormClosing(object sender, System.Windows.Forms.FormClosingEventArgs e)
 {
     if (m_callback != null)
     {
         m_callback.Closing();
         m_callback = null;
     }
 }
Пример #2
0
        /// <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;
            }
        }
Пример #3
0
 /// <summary>
 /// The constructor.
 /// </summary>
 public MyCaffeGymUiService()
 {
     m_callback = OperationContext.Current.GetCallbackChannel <IXMyCaffeGymUiCallback>();
 }