private bool MapSelectedItemToProperties() { int rowHandle = ScheduleView.FocusedRowHandle; if (rowHandle >= 0) { _shcedule.ScheduleKey = ScheduleView.GetRowCellValue(rowHandle, schedule_key).ToString(); _shcedule.ScheduleName = ScheduleView.GetRowCellValue(rowHandle, schedule_name).ToString(); _shcedule.Description = ScheduleView.GetRowCellValue(rowHandle, description).ToString(); _shcedule.MaxOverLapTime = ScheduleView.GetRowCellValue(rowHandle, MAXOVERLAPTIME).ToString(); object strEditor = ScheduleView.GetRowCellValue(rowHandle, editor); if (strEditor != null) { _shcedule.Editor = strEditor.ToString(); } else { _shcedule.Editor = string.Empty; } object editTimeZone = ScheduleView.GetRowCellValue(rowHandle, edit_timeZone); if (editTimeZone != null) { _shcedule.EditTimeZone = editTimeZone.ToString(); } else { _shcedule.EditTimeZone = string.Empty; } return(true); } return(false); }