Axiom.Demos.Browser.WinForm.Program._configure C# (CSharp) Метод

_configure() приватный Метод

private _configure ( Options options ) : bool
options Options
Результат bool
		private bool _configure( Options options )
		{
			// instantiate the Root singleton
			engine = new Root( "AxiomDemos.log" );

			_setupResources();

			dlg = new DemoConfigDialog();
			dlg.LoadRenderSystemConfig += new ConfigDialog.LoadRenderSystemConfigEventHandler( LoadRenderSystemConfiguration );
			dlg.SaveRenderSystemConfig += new ConfigDialog.SaveRenderSystemConfigEventHandler( SaveRenderSystemConfiguration );
			dlg.LoadDemos( DemoAssembly );

			if ( String.IsNullOrEmpty( options.Sample ) )
			{
				DialogResult result = dlg.ShowDialog();

				if ( result == DialogResult.Cancel )
				{
					Root.Instance.Dispose();
					engine = null;
					return false;
				}
			}
			else
			{
				engine.RenderSystem = engine.RenderSystems[ 0 ];
				this.LoadRenderSystemConfiguration( this, engine.RenderSystems[ 0 ] );
			}

			return true;
		}