 
                 pickerView.selectRow(doNotDisturbPeriod.fromHour, inComponent: 0, animated: true)
                 pickerView.selectRow(doNotDisturbPeriod.fromMinute, inComponent: 1, animated: true)
-                
 
             case .To:
                 fromButton.backgroundColor = UIColor.whiteColor()

        title = NSLocalizedString("Mute", comment: "")

        activeTime = .From
    }


    // MARK: - Actions

    @IBAction func activeFrom() {
        activeTime = .From

        return "\(row)"
    }

    func pickerView(pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {

        switch activeTime {

        case .From:

            if component == 0 {
                doNotDisturbPeriod.fromHour = row
            } else if component == 1 {
                doNotDisturbPeriod.fromMinute = row
            }

            updateFromButton()

        case .To:
            if component == 0 {
                doNotDisturbPeriod.toHour = row
            } else if component == 1 {
                doNotDisturbPeriod.toMinute = row
            }

            updateToButton()
        }
    }
}

