Beispiel #1
0
 private void PreviewToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (m_resultForm == null)
     {
         m_resultForm = new RenderResultForm();
     }
     if (m_resultForm.IsDisposed)
     {
         m_resultForm = new RenderResultForm();
     }
     m_resultForm.Show();
     m_resultForm.Focus();
     m_resultForm.UpdateResult();
 }
Beispiel #2
0
 private void BeginRenderToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (RayTracerNet.RayTracer.GetInstance().StartRayTracingRender())
     {
         if (m_resultForm == null)
         {
             m_resultForm = new RenderResultForm();
         }
         if (m_resultForm.IsDisposed)
         {
             m_resultForm = new RenderResultForm();
         }
         m_resultForm.Show();
         m_resultForm.Focus();
         m_resultForm.UpdateResult();
     }
 }