/// <inheritdoc/>
        public void Close()
        {
            Debug.WriteLine("DefaultInstanceController - closing instance(type: {0})", instance.GetType(), 1);
            view.Close();
            // copy the channel views
            // because closing the form removes the view from channelViews
            var views = new List <IChannelView>(channelViews);

            foreach (var v in views)
            {
                v.Close();
            }
            channelViews.Clear();
            views.Clear();
            if (Active)
            {
                logger.WriteInstanceData(instance);
            }
            logger.Close();
            Debug.WriteLine("DefaultInstanceController - instance(type: {0}) closed", instance.GetType(), 1);
        }
Example #2
0
 void IDisposable.Dispose()
 {
     logger.Close();
     logger.DeleteFile();
 }
Example #3
0
 public void Dispose()
 {
     logger.Close();
     logger.DeleteFile();
 }