private void ChangeControls() { EventNavRegisterRequest.Enabled = true; //enables the Register Request button EventSendCode.Hide(); //Hides the send code button //shows these controls LabelCode.Show(); InputCode.Show(); EventResend.Show(); }
private void OnAddLabelCodesPropChange(CswNbtNodeProp Prop, bool Creating) { CswCommaDelimitedString NewGHSLabelCodes = _getGHSCodesFromMemo(AddLabelCodes.Text); foreach (string LabelCode in NewGHSLabelCodes) { if (LabelCodes.Options.ContainsValue(LabelCode.Trim().ToUpper())) { KeyValuePair <string, string> first = new KeyValuePair <string, string>(); foreach (KeyValuePair <string, string> x in LabelCodes.Options.Where(x => x.Value == LabelCode.Trim().ToUpper())) { first = x; break; } if (false == LabelCodes.Value.Contains(first.Key)) { LabelCodes.AddValue(first.Key); } } } AddLabelCodes.Text = string.Empty; }
public void Visit(LabelCode code) { AddLabel(code.Label); }
public GotoCode(LabelCode label) { Label = label; }