Пример #1
0
        private void btnMMExit_Click(object sender, EventArgs e)
        {
            ListenerBO bo = (ListenerBO)SingletonManager.GetSingleton(typeof(ListenerBO));

            bo.StopListeners();
            JobsBO jbo = (JobsBO)SingletonManager.GetSingleton(typeof(JobsBO));

            jbo.Save();
            ConfigurationBO cbo = (ConfigurationBO)SingletonManager.GetSingleton(typeof(ConfigurationBO));

            cbo.Save();
            //this.Close();
            Application.Exit();
        }
Пример #2
0
        private void btnMMStopWatching_Click(object sender, EventArgs e)
        {
            ListenerBO bo = (ListenerBO)SingletonManager.GetSingleton(typeof(ListenerBO));

            bo.StopListeners();
        }