示例#1
0
 public void OnBalanceRe()
 {
     if (DoingBalanceRe != null)
     {
         DoBalanceEventArgs arg = new DoBalanceEventArgs();
         arg.IsFree = btnBalanceRe.Enabled;
         DoingBalanceRe(this, arg);
     }
 }
示例#2
0
 public void OnBalanceTr()
 {
     if (DoingBalanceTr != null)
     {
         DoBalanceEventArgs arg = new DoBalanceEventArgs();
         arg.IsFree = btnClosing.Enabled;
         DoingBalanceTr(this, arg);
     }
 }
示例#3
0
        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);
                }
            }
        }