Esempio n. 1
0
        public FormProperty()
        {
            InitializeComponent();

            buttonRemoveProperty.Click += (s, e) => RemoveProperty.RaiseEventEx(this);

            tbType.TextChanged += (s, e) =>
            {
                DatatypeChanged.RaiseEventEx(this);
                validationPropertyGrid1.SetAvailableOptions(
                    ValidationOptions.GetApplicableValidationOptionsForType(tbType.Text));
            };
            tbName.TextChanged             += (s, e) => PropertyNameChanged.RaiseEventEx(this);
            cbReadOnly.CheckedChanged      += (s, e) => ReadOnlyChanged.RaiseEventEx(this);
            cbIsKeyProperty.CheckedChanged += (s, e) => IsKeyChanged.RaiseEventEx(this);

            tbType.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
            tbType.AutoCompleteSource = AutoCompleteSource.CustomSource;
            var collection = new AutoCompleteStringCollection();

            collection.AddRange(SQLServer.CLRTypeList.ToArray());
            tbType.AutoCompleteCustomSource = collection;
        }
Esempio n. 2
0
 /// <summary>
 /// Raise the <see cref="RichTextBoxEx.ReadOnlyChanged"/> event.
 /// </summary>
 /// <param name="e">Event data.</param>
 protected override void OnReadOnlyChanged(EventArgs e) => ReadOnlyChanged?.Invoke(this, e);
Esempio n. 3
0
 /// <summary>
 /// Raises the ReadOnlyChanged event.
 /// </summary>
 /// <param name="e">An EventArgs that contains the event data.</param>
 protected virtual void OnReadOnlyChanged(EventArgs e)
 {
     ReadOnlyChanged?.Invoke(this, e);
 }