Exemple #1
0
        public void Rename()
        {
            var form = new TextEditForm();

            form.Text      = "Edit text";
            form.InputText = Title;
            var result = form.ShowDialog();

            if (result == DialogResult.OK)
            {
                Title = form.InputText;
            }
            return;
        }
Exemple #2
0
 public void Rename()
 {
     var form = new TextEditForm();
     form.Text = "Edit text";
     form.InputText = Title;
     var result = form.ShowDialog();
     if (result == DialogResult.OK)
         Title = form.InputText;
     return;
 }
 public override bool OnDoubleClick()
 {
     base.OnDoubleClick();
     var form = new TextEditForm();
     form.Text = Name ?? "Edit text";
     form.InputText = Text;
     var result = form.ShowDialog();
     if (result == DialogResult.OK)
         Text = form.InputText;
     return true;
 }