Ejemplo n.º 1
0
 private void String_Click(object sender, EventArgs e) {
     StringPopUp stringform = new StringPopUp();
     stringform.ShowDialog();
     if (stringform.UserInputString == null) {
         return;
     }
     Tagger UserInput = new Tagger(new TaggerOnSelectChange(TaggerSelectChange), new TaggerOnCrossClick(TaggerCrossClick), 0);
     UserInput.Text = stringform.UserInputString;
     UserInput.Font = new Font(new FontFamily("Segoe UI"), 8);
     UserInput.CrossSizeCorrection = -5;
     UserInput.CrossOffset = new Point(-2, 0);
     UserInput.Padding = new Padding(3, 4, 3, 3);
     StringCollection.Controls.Add(UserInput);
     count++;
     TagGroupList.Add(new Tuple<int, string>(UserInput.ID, UserInput.Text));
     stringform.Close();
 }
        private void String_Click(object sender, EventArgs e)
        {
            StringPopUp stringform = new StringPopUp();

            stringform.ShowDialog();
            if (stringform.UserInputString == null)
            {
                return;
            }
            Tagger UserInput = new Tagger(new TaggerOnSelectChange(TaggerSelectChange), new TaggerOnCrossClick(TaggerCrossClick), 0);

            UserInput.Text = stringform.UserInputString;
            UserInput.Font = new Font(new FontFamily("Segoe UI"), 8);
            UserInput.CrossSizeCorrection = -5;
            UserInput.CrossOffset         = new Point(-2, 0);
            UserInput.Padding             = new Padding(3, 4, 3, 3);
            StringCollection.Controls.Add(UserInput);
            count++;
            TagGroupList.Add(new Tuple <int, string>(UserInput.ID, UserInput.Text));
            stringform.Close();
        }