public void SetButton(string text, FrontPanelColors color, bool dim, ButtonFunction function, int value) { Text = text; ColorIndex = (int)color; AlternateColorIndex = (int)color; Dim = dim; Function = function; Value = value; }
public BindableColorButton SetButton(int buttonIndex, string text, FrontPanelColors color, bool dim, ButtonFunction function, int value) { BindableColorButton button = GetButton(buttonIndex); if (button != null) { button.SetButton(text, color, dim, function, value); } return(button); }
public BindableColorButton SetButton(int buttonIndex, string text, FrontPanelColors color, bool dim, ButtonFunction function) { return(SetButton(buttonIndex, text, color, dim, function, -1)); }
public BindableColorButton SetButton(int buttonIndex, string text, FrontPanelColors color) { return(SetButton(buttonIndex, text, color, !Buttons[buttonIndex].IsPressed, ButtonFunction.None, -1)); }
public void SetButton(string text, FrontPanelColors color, bool dim, ButtonFunction function) { SetButton(text, color, dim, function, -1); }
public void SetButton(string text, FrontPanelColors color) { SetButton(text, color, !IsPressed, ButtonFunction.None, -1); }