Exemplo n.º 1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     //Program holds the responsibility of creating Model
     //It is passed on as a reference to Payslip(view) class
     DataAccess.Model model = new DataAccess.Model();
     try
     {
         model.Initialise();
     }
     catch(System.Exception ex)
     {
         MessageBox.Show("Error occured " + ex.ToString());
     }
     Application.Run(new Payslip(ref model));
 }
Exemplo n.º 2
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     //Program holds the responsibility of creating Model
     //It is passed on as a reference to Payslip(view) class
     DataAccess.Model model = new DataAccess.Model();
     try
     {
         model.Initialise();
     }
     catch (System.Exception ex)
     {
         MessageBox.Show("Error occured " + ex.ToString());
     }
     Application.Run(new Payslip(ref model));
 }