Example #1
0
 public frmReport()
 {
     InitializeComponent();
     db           = new Examv2Context();
     procs        = new Examv2ContextProcedures(db);
     FormClosing += (sender, e) => db.Dispose();
 }
 public frmInsertQuestions()
 {
     InitializeComponent();
     FormClosing += (sender, e) => db.Dispose();
     db           = new Examv2Context();
     procs        = new Examv2ContextProcedures(db);
     qtype.SelectedIndexChanged += Qtype_SelectedIndexChanged;
 }