Beispiel #1
0
        void ReleaseDesignerOutlets()
        {
            if (BorderFromField != null)
            {
                BorderFromField.Dispose();
                BorderFromField = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (ValueSymbolToLabel != null)
            {
                ValueSymbolToLabel.Dispose();
                ValueSymbolToLabel = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (ChancelButton != null)
            {
                ChancelButton.Dispose();
                ChancelButton = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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