protected override bool OnSave(object sender)
        {
            var groupSettings = new WaterLevelGroupSettings();

            groupSettings.name = (string)settings["Name"].setting;
            if (groupSettings.name == "Enter name")
            {
                MessageBox.Show("Invalid water group name");
                return(false);
            }

            groupSettings.highAnalogAlarmSetpoint = Convert.ToSingle(settings["High Alarm"].setting);
            groupSettings.enableHighAnalogAlarm   = (int)settings["Enable High Alarm"].setting == 0;
            groupSettings.lowAnalogAlarmSetpoint  = Convert.ToSingle(settings["Low Alarm"].setting);
            groupSettings.enableLowAnalogAlarm    = (int)settings["Enable Low Alarm"].setting == 0;

            WaterLevel.UpdateWaterLevelGroup(groupName, groupSettings);
            groupName = groupSettings.name;

            return(true);
        }