private bool ShowTextInput(bool isNew)
        {
            TextInputForm textInput = new TextInputForm();

            if (!isNew)
            {
                textInput.UpdateFromLabel(childLabel);
            }
            textInput.InputText.ForeColor = childLabel.ForeColor;
            if (textInput.ShowDialog(parent) == DialogResult.OK && textInput.InputText.Text.Length > 0)
            {
                childLabel.Text = textInput.InputText.Text;
                childLabel.Font = textInput.InputText.Font;
                ForeColor       = textInput.InputText.ForeColor;
                parent.Invalidate();
                return(true);
            }
            return(false);
        }
        private bool ShowTextInput(bool isNew)
        {
            TextInputForm textInput = new TextInputForm();

            if (!isNew)
            {
                textInput.UpdateFromLabel(childLabel);
            }
            textInput.InputText.ForeColor = childLabel.ForeColor;
            textInput.ShowDialog(parent);
            if (textInput.DialogResult == DialogResult.Cancel)
            {
                return(false);
            }
            string text = textInput.InputText.Text;

            childLabel.Text = textInput.InputText.Text;
            childLabel.Font = textInput.InputText.Font;
            ForeColor       = textInput.InputText.ForeColor;
            parent.Invalidate();
            return(true);
        }
 private bool ShowTextInput(bool isNew)
 {
     TextInputForm textInput = new TextInputForm();
     if (!isNew)
     {
         textInput.UpdateFromLabel(childLabel);
     }
     textInput.InputText.ForeColor = childLabel.ForeColor;
     if (textInput.ShowDialog(parent) == DialogResult.OK && textInput.InputText.Text.Length > 0)
     {
         childLabel.Text = textInput.InputText.Text;
         childLabel.Font = textInput.InputText.Font;
         ForeColor = textInput.InputText.ForeColor;
         parent.Invalidate();
         return true;
     }
     return false;
 }