private void loadDefault()
        {
            defaultResource = new ResourceHandle("default", this);
            IEvent evt = new BasicEvent();

            defaultResource.Load(evt);
            evt.Wait();
        }
Example #2
0
        private void loadDefault()
        {
            defaultResource = new ResourceHandle("default", this);
            IEvent evt = new BasicEvent();

            defaultResource.Load(evt);
            EventState state = evt.Wait();

            if (state == EventState.Failed)
            {
                throw new NotSupportedException("Default Resource was not loaded properly");
            }
        }