public static void V2RayFile(string context) { var code = 0; try { code = Convert.ToInt32(context); } catch (Exception) { // ignored } V2Ray.Control(code); }
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(); }