public static TypeOfCalendar GetTypeOfCalendar(ref SAPbouiCOM.Form oForm) { //TODO: Method return fixed value if (oForm.TypeEx == UniqueID.FormTypeEx) { var val = OptionsHelper.GetValueOf(ref oForm, UniqueID.optMonthUID, UniqueID.optWeekUID, UniqueID.optWorkingWeekUID, UniqueID.optDayUID); return(k.Dynamic.GetValueFromAlias <TypeOfCalendar>(val)); } else { return(TypeOfCalendar.None); } }