Changed SetTimeEvent values to int, mark optiondlg also hour, min.