public ToolForm() { g = Globals.Instance; rw = RenderWrapper.Instance; InitializeComponent(); }
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; }