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(); }
public void SetButtons(ButtonAction ba) { SetButtons(ba.Next, ba.Back, ba.Apply, ba.Reset, ba.Menu); }