/// <summary> /// Create a mother (random or not) /// </summary> static void AddMother() { Mother n = new Mother(); Console.WriteLine("\n============================================================="); Console.WriteLine("The new Mother:"); Console.WriteLine("============================================================="); Console.WriteLine(n); Console.WriteLine("=============================================================\n"); int help = n.ID; ChangeID(ref help); n.ID = help; Console.WriteLine("=============================================================\n"); try { bl.AddMother(n); } catch (Exception e) { Console.WriteLine("\n***************************************"); Console.WriteLine(e.Message); Console.WriteLine("***************************************\n"); } }