// This updates UI variables such as textboxes etc. void UpdateUI() { // Get stored notes info from SMART Payout and SMART Hopper at intervals if (!timer2.Enabled) { tbChannelLevels.Text = Payout.GetChannelLevelInfo(); tbCoinLevels.Text = Hopper.GetChannelLevelInfo(); timer2.Enabled = true; } }
// This updates UI variables such as textboxes etc. void UpdateUI() { // update text boxes tbLevelInfo.Text = Payout.GetChannelLevelInfo(); // disable buttons if input would be invalid if (tbMinPayout.Text == "" || tbFloatAmount.Text == "" || tbFloatCurrency.Text == "") { btnSetFloat.Enabled = false; } else { btnSetFloat.Enabled = true; } if (tbPayoutAmount.Text == "" || tbPayoutCurrency.Text == "") { btnPayout.Enabled = false; } else { btnPayout.Enabled = true; } }