Пример #1
0
 public void Dispose()
 {
     initor.coins.Clear();
     initor.traders.Clear();
     initor.contracts.Clear();
     if (ars != null)
     {
         ars.Flush();
         ars.Dispose();
         ars = null;
     }
     if (srs != null)
     {
         srs.Flush();
         srs.Dispose();
         srs = null;
     }
     if (DbModel != null)
     {
         DbModel.Dispose(); DbModel = null;
     }
 }
Пример #2
0
 public OptionModel()
 {
     ars    = new AccountChangeHandler();
     srs    = new SysAccountChangeHandler();
     initor = new ModelInitor();
 }