Пример #1
0
        void ReleaseDesignerOutlets()
        {
            if (birthField != null)
            {
                birthField.Dispose();
                birthField = null;
            }

            if (GroupColumn != null)
            {
                GroupColumn.Dispose();
                GroupColumn = null;
            }

            if (groupField != null)
            {
                groupField.Dispose();
                groupField = null;
            }

            if (hometownField != null)
            {
                hometownField.Dispose();
                hometownField = null;
            }

            if (NameColumn != null)
            {
                NameColumn.Dispose();
                NameColumn = null;
            }

            if (nameField != null)
            {
                nameField.Dispose();
                nameField = null;
            }

            if (StudentTable != null)
            {
                StudentTable.Dispose();
                StudentTable = null;
            }

            if (surnameField != null)
            {
                surnameField.Dispose();
                surnameField = null;
            }
        }