예제 #1
0
        /// <summary>
        /// Detects running thread of Instagram
        /// </summary>
        public static void DetectInstagram()
        {
            Process InstagramWindow = IUtils.GetProcessByTitle("Instagram - Google Chrome");

            if (InstagramWindow != null)
            {
                InstagramWindow.Kill();
                ILogService.Log("Terminated Instagram", ILogService.LogLevel.Success);
            }
        }
예제 #2
0
        /// <summary>
        /// Detects running thread of Facebook
        /// </summary>
        public static void DetectFacebook()
        {
            Process FacebookWindow = IUtils.GetProcessByTitle("Facebook - Google Chrome");

            if (FacebookWindow != null)
            {
                FacebookWindow.Kill();
                ILogService.Log("Terminated Facebook", ILogService.LogLevel.Success);
            }
        }