void ReleaseDesignerOutlets() { if (Title != null) { Title.Dispose(); Title = null; } if (Price != null) { Price.Dispose(); Price = null; } if (ImgUrl != null) { ImgUrl.Dispose(); ImgUrl = null; } if (Summary != null) { Summary.Dispose(); Summary = null; } if (Specification != null) { Specification.Dispose(); Specification = null; } }
public void Dispose() { if (workbook != null) { workbook.Dispose(); } if (Summary != null) { Summary.Dispose(); } }
/// <summary> /// リソースを開放 /// </summary> public void Dispose() { _Model.PropertyChanged -= Model_PropertyChanged; LocalizeDictionary.Instance.PropertyChanged -= Instance_PropertyChanged; _Model.Dispose(); Summary.Dispose(); Modules.Dispose(); Products.Dispose(); Resources.Dispose(); Storages.Dispose(); }
public void Dispose() { DataChanged = null; DataSource = null; DigitalInfo.Dispose(); DigitalInfo = null; Summary.Dispose(); Summary = null; ContractSettings = null; Programs.ForEach(p => p.Dispose()); Programs.Clear(); Parent = null; }