protected virtual void OnBeforeEdit(BeforeEditEventArgs e) { if (BeforeEdit != null) { BeforeEdit(this, e); } }
private void textBox_VisibleChanged(object sender, EventArgs e) { if (textBox.Visible) { BeforeEditEventArgs args = new BeforeEditEventArgs(label.Text); OnBeforeEdit(args); textBox.Text = args.Text; textBox.Focus(); } }
private void titleLabel_BeforeEdit(object sender, BeforeEditEventArgs e) { e.Text = listView.CurrentDirectory.FullName; }