/// <summary>
        /// Освободить все используемые ресурсы.
        /// </summary>
        /// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param>
        protected override void Dispose(bool disposing)
        {
            foreach (var component in VariantNumber)
            {
                component.Dispose();
            }
            VariantNumber.Clear();
            foreach (var component in SequenceText)
            {
                component.Dispose();
            }
            SequenceText.Clear();
            foreach (var component in DeleteVariant)
            {
                component.Dispose();
            }
            DeleteVariant.Clear();
            foreach (var component in DownVariant)
            {
                component.Dispose();
            }
            DownVariant.Clear();
            foreach (var component in UpVariant)
            {
                component.Dispose();
            }
            UpVariant.Clear();

            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
Beispiel #2
0
        /// <summary>
        /// Освободить все используемые ресурсы.
        /// </summary>
        /// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param>
        protected override void Dispose(bool disposing)
        {
            foreach (var component in VariantNumber)
            {
                component.Dispose();
            }
            VariantNumber.Clear();
            foreach (var component in TextVariant)
            {
                component.Dispose();
            }
            TextVariant.Clear();
            foreach (var component in DeleteVariant)
            {
                component.Dispose();
            }
            DeleteVariant.Clear();
            foreach (var component in CorrectVariantMulti)
            {
                component.Dispose();
            }
            CorrectVariantMulti.Clear();

            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
        /// <summary>
        /// Освободить все используемые ресурсы.
        /// </summary>
        /// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param>
        protected override void Dispose(bool disposing)
        {
            foreach (var component in VariantNumber)
            {
                component.Dispose();
            }
            VariantNumber.Clear();
            foreach (var component in Accordance1Text)
            {
                component.Dispose();
            }
            Accordance1Text.Clear();
            foreach (var component in Accordance2Text)
            {
                component.Dispose();
            }
            Accordance2Text.Clear();
            foreach (var component in DeleteVariant)
            {
                component.Dispose();
            }
            DeleteVariant.Clear();

            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }