Ejemplo n.º 1
0
 private void toolStripRenderCfgBtn_Click(object sender, EventArgs e)
 {
     if (_settingsForm != null)
     {
         _settingsForm.Activate();
     }
     else
     {
         _settingsForm                  = new RenderSettingsForm(_rendererCfg);
         _settingsForm.FormClosed      += (sender, e) => _settingsForm = null;
         _settingsForm.SettingsChanged += (sender, e) => { modelViewer.Render(); };
         _settingsForm.Show();
     }
 }
Ejemplo n.º 2
0
 private void ToolStripRenderCfgBtn_Click(object sender, System.EventArgs e)
 {
     if (_settingsForm != null)
     {
         _settingsForm.Activate();
     }
     else
     {
         _settingsForm                  = new RenderSettingsForm(_rendererCfg);
         _settingsForm.FormClosed      += (sender, e) => { _settingsForm = null; };
         _settingsForm.SettingsChanged += NewRender;
         _settingsForm.Show();
     }
 }