public void Save()
 {
     if (!m_helper.IsDirty)
     {
         return;
     }
     m_helper.Save(textBox.Text);
 }
        public void Save()
        {
            if (!m_helper.IsDirty)
            {
                return;
            }
            string saveValue = GetCurrentValue();

            m_helper.Save(saveValue);
        }
        public void Save()
        {
            if (!m_helper.IsDirty)
            {
                return;
            }
            string saveValue = textBox.Text.Replace(Environment.NewLine, "<br/>");

            if (saveValue.Length == 0 && m_nullable)
            {
                saveValue = null;
            }
            m_helper.Save(saveValue);
        }
Beispiel #4
0
        private void DoSave()
        {
            if (m_data == null)
            {
                return;
            }
            if (!m_helper.IsDirty)
            {
                return;
            }
            double saveValue = ctlNumber.Value.Value;

            m_helper.Save(saveValue);
        }
Beispiel #5
0
        public void Save()
        {
            if (m_data == null)
            {
                return;
            }
            if (!m_helper.IsDirty)
            {
                return;
            }
            string saveValue = Filename;

            m_helper.Save(saveValue);
        }
Beispiel #6
0
        public void Save()
        {
            if (!m_helper.IsDirty)
            {
                return;
            }
            string saveValue = textBox.Text;

            if (saveValue.Length == 0 && m_nullable)
            {
                saveValue = null;
            }
            m_helper.Save(saveValue);
        }
Beispiel #7
0
        public void Save()
        {
            bool save = true;

            if (!m_helper.IsDirty)
            {
                return;
            }
            m_saving = true;
            string saveValue = null;

            if (SimpleMode)
            {
                saveValue = ConvertFromSimpleExpression(SimpleValue);
            }
            else if (TemplateMode)
            {
                saveValue = m_templateEditor.SaveExpression();
            }
            else
            {
                saveValue = txtExpression.Text;
            }
            ValidationResult result = m_helper.Controller.ValidateExpression(saveValue);

            save = result.Valid;
            if (!result.Valid)
            {
                PopupEditors.DisplayValidationError(result, saveValue, "Invalid expression");
            }
            if (m_helper.ControlDefinition.GetBool("nullable") && string.IsNullOrEmpty(saveValue))
            {
                saveValue = null;
            }
            if (save)
            {
                m_helper.Save(saveValue);
            }
            m_saving = false;
            if (!save)
            {
                Populate(m_data);
            }
        }
 public void Save()
 {
     m_helper.Save(checkBox.IsChecked.Value);
 }