Пример #1
0
        public void AddAsChild(string _Label)
        {
            if (dlginstance.Phrase(0) == null)
            {
                dlginstance.AddPhrase(new Phrase(phraseAttributesCount, this.imageContainer)
                {
                    Text     = "",
                    Label    = _Label,
                    color    = Dialog.XColors[0],
                    position =
                        new Point(this.Size.Width / 2, this.Size.Width / 2)
                },
                                      FocusedEditPhrase);

                this.Refresh();
                Changed = true;

                return;
            }
            if (dlginstance.Phrase(FocusedEditPhrase) == null)
            {
                return;
            }

            dlginstance.AddPhrase(new Phrase(phraseAttributesCount, this.imageContainer)
            {
                Text     = "",
                Label    = _Label,
                color    = Dialog.XColors[0],
                position =
                    new Point(dlginstance.Phrase(FocusedEditPhrase).position.X, dlginstance.Phrase(FocusedEditPhrase).position.Y - 40)
            },
                                  FocusedEditPhrase);

            this.Refresh();

            Changed = true;
        }