Пример #1
0
        static void Main(string[] args)
        {
//			PrintAdapterInfo();

            RenderForm fm = new RenderForm();

            AutoCollector.Collect(fm);
            RenderformInput formInput = new RenderformInput(fm);                //TODO: refact to factory creation

            AutoCollector.Collect(formInput);
            LogicBasic    logicModule = new LogicBasic(formInput);
            RenderContext mainRC      = new RenderContext(fm, logicModule);

            AutoCollector.Collect(mainRC);

            RenderLoop.Run(fm, mainRC.RenderProc);

            AutoCollector.DisposeAndClear();
        }
Пример #2
0
 public RenderContext(Control window, LogicBasic logicModule)
 {
     logicData = logicModule;
     InitDevice(window);
     PrepareResources();
 }