/// <summary>
 /// Récupère la liste des évenements
 /// </summary>
 /// <param name="date"></param>
 /// <param name="controler"></param>
 public async void InitEvent(DateTime date, EventControler controler)
 {
     Controler = controler;
     List<GoogleCalendar.Data.Event> events = await Controler.GetAllEvents();
     UpdateEvent(date, events);
     
 }
 /// <summary>
 /// Constructeur du WeekCalendar
 /// </summary>
 /// <param name="date">La date récupérée depuis le WeekBorderCalendar</param>
 public WeekCalendar(DateTime date, EventControler controler)
 {
     Date = date;
     this.InitializeComponent();
     Canvas = new Canvas[24, 7];
     Events = new List<WeekEvent>();
     InitEvent(date, controler);
     initBorder();
 }
Пример #3
0
        public AddEvent(GoogleCalendar.Data.Event monEvt, EventControler controler, ICalendar parent)
        {
            this.InitializeComponent();

            this.Title.Text = IConstantes.TITLE_ADD_EVT;
            this.Button_Cancel.Content = IConstantes.BUTTON_CANCEL;
            this.Button_Add.Content = IConstantes.BUTTON_ADD;

            this.DataContext = new VIEWMODEL.Event.EventModelView(monEvt, controler,parent);
        }
Пример #4
0
        public ModifEvent(GoogleCalendar.Data.Event monEvt,EventControler controler, ICalendar parent)
        {
            this.InitializeComponent();

            this.Title.Text = IConstantes.TITLE_UPDATE_EVT;
            this.Button_Cancel.Content = IConstantes.BUTTON_CANCEL;
            this.Button_Add.Content = IConstantes.BUTTON_UPDATE;
            this.Button_Delete.Content = IConstantes.BUTTON_DELETE;

            this.DataContext = new EventModelView(monEvt, controler, parent);
        }
Пример #5
0
 /// <summary>
 /// Constructeur du WeekCalendar
 /// </summary>
 /// <param name="date">La date récupérée depuis le WeekBorderCalendar</param>
 public DayCalendar(DateTime date, EventControler controler, ScrollViewer myScroll)
 {
     Date = date;
     Controler = controler;
     this.InitializeComponent();
     Canvas = new Canvas[24, 7];
     Events = new List<DayEvent>();
     InitEvent();
     initBorder();
     scroll = myScroll;
 }
Пример #6
0
 /// <summary>
 /// Constructeur
 /// </summary>
 /// <param name="evt">L'évènement à gérer</param>
 /// <param name="control">Le controleur de l'évènement</param>
 /// <param name="parent">Fenêtre parent qui a créé le POPUP contenant le userControls</param>
 public EventModelView(GoogleCalendar.Data.Event evt, EventControler control, ICalendar parent)
 {
     this._parent = parent;
     _controller = control;
     _mEvent = evt;
     initDates();
 }
Пример #7
0
 public Synchronizer(EventControler controler)
 {
     TokenSource = new CancellationTokenSource();
     Controler = controler;
 }