public FontButton() { this.Text = "Font"; this.IsValid = true; this.m_PropertyAdapter = new PlugInEditorControlPropertyAdapter(); this.Changed += this.FontButton_Changed; }
protected override void CreateObjects() { this.m_Value = new ValueString(); base.AddSubClass(this.Value); this.m_PropertyAdapter = new PlugInEditorControlPropertyAdapter(); this.Value.Changed += this.OnValueChanged; base.TextChanged += this.EditBox_TextChanged; }
public ColorPicker() { base.SetStyle(ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor | ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer, true); base.UpdateStyles(); this.m_Style = ColorPickerStyle.ColorBoxAndText; this.m_PropertyAdapter = new PlugInEditorControlPropertyAdapter(); this.BackColor = SystemColors.Window; this.IsValid = true; this.ColorChanged += this.ColorPicker_ColorChanged; }
public NumericUpDown() { this.m_PropertyAdapter = new PlugInEditorControlPropertyAdapter(); (base.Controls[1] as TextBox).AcceptsReturn = true; (base.Controls[1] as TextBox).WordWrap = true; base.Leave += this.NumericUpDown_Leave; (base.Controls[1] as TextBox).KeyPress += this.NumericUpDown_KeyPress; this.IsValid = true; base.ValueChanged += this.NumericUpDown_ValueChanged; }
public EditMultiLine() { this.m_PropertyAdapter = new PlugInEditorControlPropertyAdapter(); this.m_EditButton = new Button(); this.m_EditButton.Location = new Point(100, 0); this.m_EditButton.Name = "EditButton"; this.m_EditButton.Size = new Size(22, 20); this.m_EditButton.TabIndex = 1; this.m_EditButton.Text = "..."; this.m_TextBox = new EditBox(); this.m_TextBox.Location = new Point(0, 0); this.m_TextBox.Name = "TextBox"; this.m_TextBox.TabIndex = 0; base.Controls.Add(this.m_EditButton); base.Controls.Add(this.m_TextBox); base.Resize += this.EditMultiLine_Resize; this.m_EditButton.Click += this.EditButton_Click; this.m_TextBox.Changed += this.m_TextBox_Changed; this.m_TextBox.ForcedUpdate += this.m_TextBox_ForcedUpdate; this.m_TextBox.TextChanged += this.m_TextBox_TextChanged; this.IsValid = true; base.TabStop = false; this.EditMultiLine_Resize(this, null); }
public DateTimePicker() { this.m_PropertyAdapter = new PlugInEditorControlPropertyAdapter(); this.IsValid = true; base.ValueChanged += this.DateTimePicker_ValueChanged; }
public CheckBox() { this.IsValid = true; this.m_PropertyAdapter = new PlugInEditorControlPropertyAdapter(); base.CheckedChanged += this.CheckBox_CheckedChanged; }
public ComboBox() { this.m_PropertyAdapter = new PlugInEditorControlPropertyAdapter(); this.IsValid = true; base.SelectedIndexChanged += this.ComboBox_SelectedIndexChanged; }