示例#1
0
        protected override void OnExit(ExitEventArgs e)
        {
            // let counter save current state
            YandexMetrica.ReportExit();

            base.OnExit(e);
        }
示例#2
0
        static void Main()
        {
            YandexMetrica.Activate(ApiKey);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());

            // let counter save current state
            YandexMetrica.ReportExit();
        }
示例#3
0
        private void App_OnExit(object sender, ExitEventArgs e)
        {
            RemoveTrayIcon();

            AudioService.Save();
            AudioService.Dispose();

            if (Settings.Instance.SendStats)
            {
                YandexMetrica.ReportExit();
            }
        }