示例#1
0
        public void SetButtons(ButtonAction ba)
        {
            DoneAction  = ba.Apply;
            ResetAction = ba.Reset;
            bool ap = DoneAction != null;
            bool re = ResetAction != null;

            btn_Done.Visible  = ap && ShowDone;
            btn_Apply.Visible = ap && ShowApply;
            btn_Reset.Visible = re && ShowRefresh;
            Refresh();
        }
示例#2
0
 public void SetButtons(ButtonAction ba)
 {
     SetButtons(ba.Next, ba.Back, ba.Apply, ba.Reset, ba.Menu);
 }