Example #1
0
        private void AddManAccept_Click(object sender, EventArgs e)
        {
            string Name = AddManName.Text;

            ManipulationClass.AddManToListOfMan(new Man(Name));
            this.Close();
        }
 public static void LoadDataFromFile()
 {
     try
     {
         string[] inputString = File.ReadAllLines("listOfMan.txt");
         for (int i = 0; i < inputString.Length; i++)
         {
             Console.WriteLine(inputString[i]);
             ManipulationClass.AddManToListOfMan(new Man(inputString[i]));
         }
     }
     catch { }
 }