NoteManagerSurfaceNoteDefaultValue Property |
Namespace: VIZCore3D.NET.Manager
public SurfaceNoteDefaultData SurfaceNoteDefaultValue { get; set; }
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore3d; private void Example() { if (vizcore3d.Model.IsOpen() == false) return; // 기본 데이터 생성 VIZCore3D.NET.Data.SurfaceNoteDefaultData item = new VIZCore3D.NET.Data.SurfaceNoteDefaultData(); item.UseSymbol = true; item.SymbolText = "1"; item.ModelNameLevel = 1; // 기본 데이터 설정 vizcore3d.Review.Note.SurfaceNoteDefaultValue = item; // 리뷰 변경 : 표면노트 추가 이벤트 vizcore3d.Review.OnReviewChangedEvent += Review_OnReviewChangedEvent; // 표면노트 추가 vizcore3d.Review.Note.AddNoteSurfaceDialog(); } private void Review_OnReviewChangedEvent(object sender, Event.EventManager.ReviewEventArgs e) { if (e.EventKind != Manager.ReviewManager.ReviewEventKind.ADDED_SURFACE_NOTE) return; VIZCore3D.NET.Data.SurfaceNoteDefaultData item = vizcore3d.Review.Note.SurfaceNoteDefaultValue; item.SymbolText = "2"; }