private static void DispatchOnStoreCommitComplete(object sender, StoreCommitCompleteEventArgs e) { if (StoreCommitComplete != null) { StoreCommitComplete(sender, e); } }
void Instance_StoreCommitComplete(object sender, StoreCommitCompleteEventArgs e) { // Log the user's product launch on the first user commit operation. if (!m_ProductLaunchLogged && e.CommitType == CommitType.UserCommit) { m_ProductLaunchLogged = true; LogProductLaunch(Planner.Instance.CurrentUserAlias); } }
void Handle_StoreCommitComplete(object sender, StoreCommitCompleteEventArgs e) { CreateProductGroupOperationInProgress = false; if (ProductGroupStage == ProductGroupStages.CreatingProductGroupItem) { ProductGroupStage = ProductGroupStages.CreatingProductGroupItemCompleted; } else if (ProductGroupStage == ProductGroupStages.CommittingDiscoveredGroupMembers) { ProductGroupStage = ProductGroupStages.CommittingDiscoveredGroupMembersCompleted; } else if (ProductGroupStage == ProductGroupStages.EditProductGroupDialogActive) { ProductGroupStage = ProductGroupStages.UpdateExistingProductGroupCompleted; } else if (ProductGroupStage == ProductGroupStages.ProductGroupMembershipRebuildComplete) { ProductGroupStage = ProductGroupStages.EditProductGroupCompleted; } }
// The Store Commit operation has completed public static void OnStoreCommitComplete(object sender, StoreCommitCompleteEventArgs e) { Planner.Instance.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(() => DispatchOnStoreCommitComplete(sender, e))); }