/// <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); }
void IDisposable.Dispose() { logger.Close(); logger.DeleteFile(); }
public void Dispose() { logger.Close(); logger.DeleteFile(); }