コード例 #1
0
 void Match_MatchRowChanging(object sender, DataSetMarket.MatchRowChangeEvent e)
 {
     if (e.Action == DataRowAction.Commit && e.Row.MatchId == this.matchId && this.IsHandleCreated)
     {
         if (e.Row.StatusCode != Status.Active)
         {
             BeginInvoke(new VoidDelegate(DisableKeypad));
         }
     }
 }
コード例 #2
0
 /// <summary>
 /// Event handler for a match.
 /// </summary>
 /// <param name="sender">The object that originated the event.</param>
 /// <param name="e">The event arguments.</param>
 void Match_MatchRowChanging(object sender, DataSetMarket.MatchRowChangeEvent e)
 {
     // When a new, pending match record has been added to the data mode, start a thread that will
     // display the notification window.
     if (e.Action == DataRowAction.Commit)
     {
         if (e.Row.MatchId == this.matchId && e.Row.StatusCode != Status.Active)
         {
             this.animationState = AnimationState.Closing;
         }
     }
 }
コード例 #3
0
 /// <summary>
 /// Event handler for a match.
 /// </summary>
 /// <param name="sender">The object that originated the event.</param>
 /// <param name="e">The event arguments.</param>
 void Match_MatchRowChanging(object sender, DataSetMarket.MatchRowChangeEvent e)
 {
     // When a new, pending match record has been added to the data mode, start a thread that will
     // display the notification window.
     if (e.Action == DataRowAction.Commit)
     {
         if (!e.Row.HasVersion(DataRowVersion.Original) && e.Row.StatusCode == Status.Active)
         {
             ThreadPool.QueueUserWorkItem(new WaitCallback(NotifyUser), e.Row.MatchId);
         }
     }
 }