예제 #1
0
        static void Main(string[] args)
        {
            Arguments CommandLine = new Arguments(args);

            if (CommandLine["autologin"] != null)
            {
                string username, password;
                if (CommandLine["u"] == null)
                {
                    Usage u = new Usage();
                    return;
                }
                RegistryWriter rw = new RegistryWriter();
                if (CommandLine["p"] == null)
                {
                    rw.WriteDefaultLogin(CommandLine["u"], "");
                }
                else
                {
                    rw.WriteDefaultLogin(CommandLine["u"], CommandLine["p"]);
                }
            }
            else if (CommandLine["noautologin"] != null)
            {
                RegistryWriter rw = new RegistryWriter();
                rw.RemoveDefaultLogin();
            }
            else
            {
                Usage u = new Usage();
            }
        }
예제 #2
0
 static void Main(string[] args)
 {
     Arguments CommandLine = new Arguments(args);
     if (CommandLine["autologin"] != null)
     {
         string username, password;
         if (CommandLine["u"] == null)
         {
             Usage u = new Usage();
             return;
         }
         RegistryWriter rw = new RegistryWriter();
         if (CommandLine["p"] == null)
             rw.WriteDefaultLogin(CommandLine["u"], "");
         else
             rw.WriteDefaultLogin(CommandLine["u"], CommandLine["p"]);
     }
     else if (CommandLine["noautologin"] != null)
     {
         RegistryWriter rw = new RegistryWriter();
         rw.RemoveDefaultLogin();
     }
     else
     {
         Usage u = new Usage();
     }
 }