コード例 #1
0
 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();
 }
コード例 #2
0
        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;
        }
コード例 #3
0
 public void Visit(LabelCode code)
 {
     AddLabel(code.Label);
 }
コード例 #4
0
 public GotoCode(LabelCode label)
 {
     Label = label;
 }