public static void ReadCredential(CopyValue copyValue, int credentialSeqNo) { if (thread.ThreadState == ThreadState.Running || thread.ThreadState == ThreadState.WaitSleepJoin) { thread.Abort(); } thread = new Thread(CommandLine.RunClear); StreamReader streamReader = new StreamReader(FileHandling.secretFilePath); for (int i = 1; i <= credentialSeqNo * 3; i++) { string text = streamReader.ReadLine(); if (i == 3 * credentialSeqNo - (int)copyValue) { text = text.Decrypt(); // Console.WriteLine(" username : "******" . copied to clipboard"); CommandLine.RunCopy(text); break; } } thread.Start(); streamReader.Close(); }
protected override MutableObject Mutate(MutableObject mutable) { foreach (var entry in Scope.GetEntries(mutable)) { var foundValue = CopyValue.GetFirstValueBelowArrity(entry); CopyTarget.SetValue(foundValue, entry); } return(mutable); }
protected override MutableObject Mutate(MutableObject mutable) { var entries = CopyValue.GetEntries(mutable); foreach (var entry in entries) { CopyTarget.SetValue(CopyValue.GetValue(entry), entry); } return(mutable); }