private void menuItemArrowEditName_Click(object sender, EventArgs e) { using (StringEditorForm form = new StringEditorForm()) { form.Value = (this.content.SelectedShape as ArrowShape).Name; if (form.ShowDialog() == DialogResult.OK) { (this.content.SelectedShape as ArrowShape).Name = form.Value; this.host.Refresh(); } } }
private void menuItemStateEditColor_Click(object sender, EventArgs e) { using (StringEditorForm form = new StringEditorForm()) { form.Value = (this.content.SelectedShape as StateShape).Color; if (form.ShowDialog() == DialogResult.OK) { (this.content.SelectedShape as StateShape).Color = form.Value; this.host.Refresh(); } } }