private void ClearForm() { Txt_Amt_Sold.Clear(); Ttl_Before_Discount.Clear(); Discount_Amount.Clear(); Discount_Percent.Clear(); Total_Amount.Clear(); adTrack = 0; adTrack1 = 0; Txt_Amt_Sold.Focus(); }
public MainWindow() { InitializeComponent(); DispatcherTimer timer = new DispatcherTimer { // Specify timer interval. Interval = new TimeSpan(0, 0, 5) }; // Specify timer event handler function. timer.Tick += new EventHandler(Timer_Tick); timer.Start(); suggestion.Visibility = Visibility.Collapsed; Txt_Amt_Sold.Focus(); }
private void Suggestion_Checked(object sender, RoutedEventArgs e) { Txt_Amt_Sold.Text = SuggestedAmount.ToString(); Txt_Amt_Sold.Focus(); Total_Amount.Focus(); }