Click or drag to resize

ModelManagerOnModelProgressChangedEvent Event

Model Load Progress Changed Event

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public event ModelProgressChangedEventHandler OnModelProgressChangedEvent

Value

Type: ModelProgressChangedEventHandler
Examples
C#
// 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));
}
See Also