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;
            }
        }
Esempio n. 2
0
 public void Dispose()
 {
     if (workbook != null)
     {
         workbook.Dispose();
     }
     if (Summary != null)
     {
         Summary.Dispose();
     }
 }
Esempio n. 3
0
 /// <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();
 }
Esempio n. 4
0
        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;
        }