public void PasswordGene() { Console.SetWindowSize(100, 30); Console.SetBufferSize(100, 30); Colors set = new Colors(); Kit set2 = new Kit(); set.DoIt(); Console.ForegroundColor = ConsoleColor.Red; Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\n\n=== Password has been copied to the clipboard. Press any key to continue... ==="); Clipboard.SetText(PasswordGenerator.NewPassword()); Console.ReadKey(); //set2.Short_menu(); }
private void buttonGenerateRandomPassword_Click(object sender, EventArgs e) { Clipboard.SetText(PasswordGenerator.NewPassword()); MessageBox.Show("=== Password has been copied to the clipboard. ===", "myEDI", MessageBoxButtons.OK, MessageBoxIcon.Information); }
public void DoIt() { WriteConsoleColor(new ColoredString(ConsoleColor.DarkYellow, "\nMy password is: ")); WriteConsoleColor(new ColoredString(ConsoleColor.Red, PasswordGenerator.NewPassword())); }