protected override void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);
            if (DataContext == null)
            {
                DataContext = new Model();
            }
            var model = DataContext as Model;

            model.Waiting.Clear();
            model.Expecting.Clear();
            Dispatcher.Invoke(async() => { await MessageProcessing.CheckAppointments(model); });
        }
Exemple #2
0
 public async System.Threading.Tasks.Task ReadTodaysAppointments()
 {
     ArrivalsModel model = new ArrivalsModel();
     await MessageProcessing.CheckAppointments(model);
 }
 private async void buttonRefresh_Click(object sender, RoutedEventArgs e)
 {
     var model = DataContext as Model;
     await MessageProcessing.CheckAppointments(model);
 }