private void OnStartProcess(PathEventArg arg) { if (RaiseStartProcess != null) { RaiseStartProcess(this, arg); } }
// 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); }