Ejemplo n.º 1
0
 public FontButton()
 {
     this.Text              = "Font";
     this.IsValid           = true;
     this.m_PropertyAdapter = new PlugInEditorControlPropertyAdapter();
     this.Changed          += this.FontButton_Changed;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 6
0
 public DateTimePicker()
 {
     this.m_PropertyAdapter = new PlugInEditorControlPropertyAdapter();
     this.IsValid           = true;
     base.ValueChanged     += this.DateTimePicker_ValueChanged;
 }
Ejemplo n.º 7
0
 public CheckBox()
 {
     this.IsValid           = true;
     this.m_PropertyAdapter = new PlugInEditorControlPropertyAdapter();
     base.CheckedChanged   += this.CheckBox_CheckedChanged;
 }
Ejemplo n.º 8
0
 public ComboBox()
 {
     this.m_PropertyAdapter     = new PlugInEditorControlPropertyAdapter();
     this.IsValid               = true;
     base.SelectedIndexChanged += this.ComboBox_SelectedIndexChanged;
 }