Advertisement
MatLumber2

Untitled

Apr 25th, 2020
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.77 KB | None | 0 0
  1.  if (a == this.textBox1.Text)
  2.                 {
  3.                     MessageBox.Show("Clave guardada por 5 horas!");
  4.                     string path = "data.ejd";
  5.                     string currentDirectory = Directory.GetCurrentDirectory();
  6.                     string path2 = Path.Combine(currentDirectory, path);
  7.                     FileStream fileStream = File.Create(path2);
  8.                     fileStream.Close();
  9.                     File.WriteAllText(path2, DateTime.UtcNow.AddHours(5.0).ToString("ttyyddmmMMh"));
  10.                     MatSploitUI mat = new MatSploitUI();
  11.                     mat.Show();
  12.                     this.Hide();
  13.                 }
  14.                 else
  15.                 {
  16.                     this.textBox1.Text = "Incorrect!";
  17.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement