예제 #1
0
파일: UIController.cs 프로젝트: fafase/F-Hw
 private void OnStartProcess(PathEventArg arg)
 {
     if (RaiseStartProcess != null)
     {
         RaiseStartProcess(this, arg);
     }
 }
예제 #2
0
    // Listener for the UIController to propagate the event.
    private void UiAction_RaiseStartProcess(object sender, PathEventArg e)
    {
        string path = e.path;
        // IFileProcess parses the json
        IFileProcess fileProcess = new FileProcess(path);
        // Parse the json into actual data
        LoaderControlSystem lcs = new LoaderControlSystem(this, path, fileProcess, 1000);

        this.m_uiCtrl.RegisterLoadingListener(lcs);
    }