示例#1
0
 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();
         }
     }
 }
示例#2
0
 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();
         }
     }
 }