コード例 #1
0
 protected virtual void OnBeforeEdit(BeforeEditEventArgs e)
 {
     if (BeforeEdit != null)
     {
         BeforeEdit(this, e);
     }
 }
コード例 #2
0
 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();
     }
 }
コード例 #3
0
 private void titleLabel_BeforeEdit(object sender, BeforeEditEventArgs e)
 {
     e.Text = listView.CurrentDirectory.FullName;
 }