示例#1
0
        static void Main(string[] args)
        {
            var secrecy = new Secrecy();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if (args != null && args.Length > 0)
            {
                var api = secrecy.GetPrivacyShare(args[0]);
                StartProgress(api.Item1 ?? secrecy.GetAPI(GetResult(secrecy.Choose, secrecy.Name), args[0]), api.Item2);
            }
            Process.GetCurrentProcess().Kill();
        }
示例#2
0
        static void Main(string[] args)
        {
            var secrecy = new Secrecy();

            //args = secrecy.Administrator;
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if (args != null && args.Length > 0)
            {
                var api = secrecy.GetPrivacyShare(args[0]);
                StartProgress(GoblinBatClient.GetInstance(args), api.Item1 ?? secrecy.GetAPI(GetResult(secrecy.Choose, secrecy.Name), args[0]), api.Item2);
            }
            GC.Collect();
            Process.GetCurrentProcess().Kill();
        }