private void Button1_Click(object sender, EventArgs e) { this.newName = this.textBox1.Text; ribbon.ShapeNameEdited(this.newName); this.Close(); }