private void UpdModel_CoreReady() { this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (ThreadStart) delegate() { updModel.Bind(); // UpdatesList.Items.Refresh(); } ); }
public UpdateWindow(UpdateFormViewModel updModel) { this.updModel = updModel; //gridSource = core.GetUpdates("Ордер"); InitializeComponent(); DataContext = this.updModel; this.updModel.CoreReady += UpdModel_CoreReady; updModel.Bind(); //this.updModel.onRefresh += UpdModel_onRefresh; }