public NumberingOptions(NumberingOptions source) { this.start = source.start; this.increment = source.increment; this.format = source.format; this.count = source.count; this.stride = source.stride; }
public NumberingDialog(NumberingOptions source) { this.options = source; InitializeComponent(); numberingOptionsBindingSource.Add(this.options); this.textBoxFormat.TextChanged += TextBoxFormat_TextChanged; this.textBoxFormat.Validated += TextBoxFormat_TextChanged; }
private void TextBoxFormat_TextChanged(object sender, EventArgs e) { this.labelExample.Text = NumberingOptions.FormatValue(1, this.textBoxFormat.Text); }