private async void actgrdPrint(object sender, RoutedEventArgs e) { tblDocumentCommon xDoc = FViewDataContext.CurrentDocument; // (tblDocumentCommon)((Button)sender).Tag; await FViewDataContext.SaveAllCangesAsync(); PrintContext.Instance.PrintDocument(FViewDataContext.CurrentDocument); await FViewDataContext.SaveAllCangesAsync(); }
protected async Task SaveAllChanges() { await FViewDataContext.SaveAllCangesAsync(); }