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(); } }
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(); } }