コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: B3J4y/Poker
 /// <summary>
 /// sets Personal Stack to min value
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void setMinValue(object sender, MouseButtonEventArgs e)
 {
     log.Debug("setMinValue(object " + sender.ToString() + " MouseButtonEventArgs " + e.ToString() + ") - Begin");
     //Update the personal stack
     personalStack = kvp.Value[1].amount;
     personalStackField_h.Text = personalStack.ToString();
     personalStackField_v.Text = personalStack.ToString();
     checkCash(kvp.Key.position);
     setActionButtonText();
     log.Debug("setMinValue() - End");
     e.Handled = true;
 }
コード例 #2
0
 /// <summary>
 /// Send send change event when the mouse clicks down the track bar.
 /// </summary>
 /// <param name="sender">Source object, track.</param>
 /// <param name="args">Mouse button args.</param>
 private void OnMouseClick(object sender, MouseButtonEventArgs args)
 {
     Debug.WriteLine("OnMouseDownHorizontal sender=" + sender.ToString() + " args=" + args.ToString());
     Value = CalcValue(args);
 }