/// <summary>
        /// The CloseUi method closes the user interface if it is open.
        /// </summary>
        public void CloseUi()
        {
            if (m_gymui == null)
            {
                return;
            }

            m_gymui.CloseUi(0);
            m_gymui.Close();
            m_gymui = null;
            m_nUiId = -1;
        }
        /// <summary>
        /// The OpenUi method opens the user interface to visualize the gym as it progresses.
        /// </summary>
        public void OpenUi()
        {
            if (m_gymui != null)
            {
                return;
            }

            try
            {
                m_gymui = new MyCaffeGymUiProxy(new InstanceContext(this));
                m_gymui.Open();
                m_nUiId = m_gymui.OpenUi(Name, m_nUiId);
            }
            catch (Exception excpt)
            {
                throw new Exception("You need to run the MyCaffe Test Application which supports the gym user interface host.", excpt);
            }
        }
Exemple #3
0
 public void Closing()
 {
     m_nUiId = -1;
     m_gymui.Close();
     m_gymui = null;
 }
Exemple #4
0
 protected override void openUi()
 {
     m_gymui = new MyCaffeGymUiProxy(new InstanceContext(this));
     m_gymui.Open();
     m_nUiId = m_gymui.OpenUi(m_strName, m_nUiId);
 }