예제 #1
0
파일: frmMain.cs 프로젝트: Sukasa/SeeSharp
 private void btnRendererOptions_Click(object Sender, EventArgs E)
 {
     if (_CachedConfigForm == null)
     {
         IRenderer Renderer = RendererManager.Instance().InstantiateRenderer((_SelectedRenderer).RendererName);
         _CachedConfigForm = Renderer.ConfigurationForm;
     }
     if (_CachedConfigForm == null)
     {
         MessageBox.Show(". does not have an advanced configuration.", "No Advanced Configuration", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else
     {
         _CachedConfigForm.ConfigStrings = _RenderingConfig.AdvancedRenderOptions;
         _CachedConfigForm.ShowDialog(this);
         _RenderingConfig.AdvancedRenderOptions = _CachedConfigForm.ConfigStrings;
         QueuePreview();
     }
 }
예제 #2
0
파일: frmMain.cs 프로젝트: Sukasa/SeeSharp
 private void cbRenderer_SelectedIndexChanged(object Sender, EventArgs E)
 {
     _SelectedRenderer = (RendererListEntry)cbRenderer.SelectedItem;
     _CachedConfigForm = null;
 }