Advertisement
Guest User

Instruction

a guest
Feb 24th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1. void инструкцияButton_Click(object sender, EventArgs e)
  2.         {
  3.             string instr = "";
  4.             string appPath = AppDomain.CurrentDomain.BaseDirectory;
  5.             string[] instruction = File.ReadAllLines
  6.                 (Path.Combine(@appPath, "Instruction.txt"));
  7.             foreach (string s in instruction)
  8.                 instr += s + "\n";
  9.             MessageBox.Show(instr, "Инструкция", MessageBoxButtons.OK,
  10.                             MessageBoxIcon.Information);
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement