示例#1
0
        private void set_stereo(object o, EventArgs ev)
        {
            if ((o as FlatMenuItem).Index == 0)
            {
                Rectangle r = obj.EditRect;
                InPlaceTextEdit.Start("Edit stereotype", obj.Stereo, parent.cview.point_to_screen(r.X, r.Y), Math.Max(r.Width, 70), r.Height, parent.cview, new StringEditedEvent(EditedStereo), false);
                return;
            }

            if ((o as FlatMenuItem).Index >= 3)
            {
                obj.Stereo = hashed_stereo_list[(o as FlatMenuItem).Index - 3];
            }
            else if ((o as FlatMenuItem).Index == 1)
            {
                obj.Stereo = null;
            }
        }
示例#2
0
 public void RenameClick(object o, EventArgs ev)
 {
     InPlaceTextEdit.Start("Edit memo text", text, parent.cview.point_to_screen(place.X + inflate + 1, place.Y + inflate + 1), Math.Max(place.Width + 20, 70), place.Height + 40, parent.cview, new StringEditedEvent(Edited), true);
 }
示例#3
0
 public void RenameClick(object o, EventArgs ev)
 {
     InPlaceTextEdit.Start("Rename", Text, parent.cview.point_to_screen(place.X, place.Y), Math.Max(place.Width + 20, 70), place.Height, parent.cview, new StringEditedEvent(Edited), false);
 }
示例#4
0
        public void RestoreName(object v, EventArgs e)
        {
            Rectangle r = new Rectangle(place.X + inflate + 1, place.Y + inflate + 1, place.Width, 0);

            InPlaceTextEdit.Start("Enter new name", name, parent.cview.point_to_screen(r.X, r.Y), Math.Max(r.Width, 70), r.Height, parent.cview, new StringEditedEvent(EditedName), false);
        }
示例#5
0
        public void Rename_click(object o, EventArgs ev)
        {
            Rectangle r = new Rectangle(place.X + inflate + 1, place.Y + inflate + 1, title_width, 0);

            InPlaceTextEdit.Start("Change name", name, parent.cview.point_to_screen(r.X, r.Y), Math.Max(r.Width, 70), r.Height, parent.cview, new StringEditedEvent(EditedName), false);
        }