public void OnBalanceRe() { if (DoingBalanceRe != null) { DoBalanceEventArgs arg = new DoBalanceEventArgs(); arg.IsFree = btnBalanceRe.Enabled; DoingBalanceRe(this, arg); } }
public void OnBalanceTr() { if (DoingBalanceTr != null) { DoBalanceEventArgs arg = new DoBalanceEventArgs(); arg.IsFree = btnClosing.Enabled; DoingBalanceTr(this, arg); } }
void uiTr_DoingBalanceTr(object sender, DoBalanceEventArgs e) { tsbBalanceTr.Enabled = e.IsFree; tsbBalanceReTr.Enabled = e.IsFree; uiReTr.SetButtonEanble(e.IsFree); if (e.IsFree) { if (uiRe.IsBusy) { tsbBalanceReTr.Enabled = false; uiReTr.SetButtonEanble(false); } } }