Пример #1
0
        public ToolForm()
        {
            g = Globals.Instance;
            rw = RenderWrapper.Instance;

            InitializeComponent();
        }
Пример #2
0
        public MainForm()
        {
            rw = RenderWrapper.Instance;
            //rw = new RenderWrapper();
            tf = new ToolForm();
            tf.Show();
            g = Globals.Instance;
            g.getOptions();

            InitializeComponent();
            this.simpleOpenGlControl1.InitializeContexts();
            // timer control
            timer = new Timer();
            timer.Tick += new EventHandler(OnTimer);
            timer.Enabled = true;
            timer.Interval = g.clock;
        }