Пример #1
0
 public void MainShow(IActionable a)
 {
     act = a;
     try
     {
         a.MainFunction();
         PrintWin(a);
     }
     catch (NullReferenceException nfe)
     {
         Console.WriteLine(nfe.Message);
     }
     catch (ArgumentOutOfRangeException ae)
     {
         Console.WriteLine(ae.Message);
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
     }
 }