Ejemplo n.º 1
0
        public static void V2RayFile(string context)
        {
            var code = 0;

            try
            {
                code = Convert.ToInt32(context);
            }
            catch (Exception)
            {
                // ignored
            }

            V2Ray.Control(code);
        }
Ejemplo n.º 2
0
        private static void Exit()
        {
            NotifyIcon.Visible = false;
            V2Ray.Control(V2Ray.STOP);
            try
            {
                KillProcessAndChildren(_v2RayVProcess.Id);
            }
            catch (Exception)
            {
                // ignored
            }

            try
            {
                KillProcessAndChildren(_v2RayVQueueProcess.Id);
            }
            catch (Exception)
            {
                // ignored
            }

            Application.Exit();
        }