ModelManagerOnModelProgressChangedEvent Event |
Namespace: VIZCore3D.NET.Manager
public event ModelProgressChangedEventHandler OnModelProgressChangedEvent
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore3d; private void ProgressChangedEvent() { vizcore3d.Model.OnModelProgressChangedEvent += Model_OnModelProgressChangedEvent; string path = "C:\\Model\\BLOCK.viz"; vizcore3d.Model.Open(path); } private void Model_OnModelProgressChangedEvent(object sender, VIZCore3D.NET.Event.EventManager.ModelProgressEventArgs e) { string Mode = String.Empty; switch (e.Mode) { case VIZCore3D.NET.Data.ModelProgressModes.READ: Mode = "파일 읽기 (열기)..."; break; case VIZCore3D.NET.Data.ModelProgressModes.WRITE: Mode = "파일 저장 ..."; break; case VIZCore3D.NET.Data.ModelProgressModes.MERGE: Mode = "파일 추가 (병합)..."; break; default: break; } System.Diagnostics.Trace.WriteLine(string.Format("{0} - Progress : {1} %", Mode, e.Progress)); }