Example #1
0
 public override void Dispose()
 {
     base.Dispose ();
     if (model != null) {
         model.Dispose ();
         model = null;
     }
     if (serviceModel != null) {
         serviceModel.Dispose ();
         serviceModel = null;
     }
 }
 protected override void Dispose(bool disposing)
 {
     base.Dispose (disposing);
     if (model != null) {
         model.Dispose ();
         model = null;
     }
     if (serviceModel != null) {
         serviceModel.Dispose ();
         serviceModel = null;
     }
 }
Example #3
0
 public static ServiceModel GetCurrent()
 {
     ServiceModel m = new ServiceModel ();
     m.db = DataConnection.GetConnection ();
     return m;
 }