/// <summary> /// Adds a new mark to the calendar. /// </summary> /// <param name="type">A string used to define the type of mark. It will be emitted to the theme that should display a related modification on these day's representation.</param> /// <param name="date">A time struct to represent the date of inclusion of the mark. For marks that repeat, it will just be displayed after the inclusion date in the calendar.</param> /// <param name="repeat">Repeat the event following this periodicity. Can be a unique mark (that doesn't repeat), daily, weekly, monthly, or annually.</param> /// <returns>Item for a calendar mark.</returns> /// <since_tizen> preview </since_tizen> public CalendarMark AddMark(string type, DateTime date, CalendarMarkRepeatType repeat) { CalendarMark mark = new CalendarMark(type, date, repeat); Interop.Libc.SystemTime tm = date; IntPtr nativeHandle = Interop.Elementary.elm_calendar_mark_add(RealHandle, type, ref tm, (Interop.Elementary.Elm_Calendar_Mark_Repeat_Type)repeat); mark.Handle = nativeHandle; return(mark); }
/// <summary> /// Deletes a mark from the calendar. /// </summary> /// <param name="mark">Item for a calendar mark.</param> /// <since_tizen> preview </since_tizen> public void DeleteMark(CalendarMark mark) { Interop.Elementary.elm_calendar_mark_del(mark.Handle); }