public void OpenEditShadingDialog() { //EditShadingDialog dlg = new EditShadingDialog(renderContext.OutputDescription.GeneralShadingDesc, // renderContext.OutputDescription.AtomShadingDesc, // renderContext.OutputDescription.BondShadingDesc, // renderContext.OutputCaps, // renderContext.Device, // modules.ToArray()); //if (dlg.ShowDialog() == DialogResult.OK) //{ // renderContext.OutputDescription.GeneralShadingDesc = dlg.ResultGeneralShading; // renderContext.OutputDescription.AtomShadingDesc = dlg.ResultAtomShading; // renderContext.OutputDescription.BondShadingDesc = dlg.ResultBondShading; // renderContext.ApplyOutputDescription(renderContext.OutputDescription); // renderContext.Render(null); //} //dlg.Dispose(); MoleculeSchemeDlg dlg = new MoleculeSchemeDlg(settings, renderContext.OutputCaps, renderContext.Device, outputDesc); if (dlg.ShowDialog(this) == DialogResult.OK) { // pass on settings to context renderContext.ApplyOutputDescription(dlg.FinalCoDesc); renderContext.Render(null); } dlg.Dispose(); }
public void OpenEditShadingDialog() { //EditShadingDialog dlg = new EditShadingDialog(renderContext.OutputDescription.GeneralShadingDesc, // renderContext.OutputDescription.AtomShadingDesc, // renderContext.OutputDescription.BondShadingDesc, // renderContext.OutputCaps, // renderContext.Device, // modules.ToArray()); //if (dlg.ShowDialog() == DialogResult.OK) //{ // renderContext.OutputDescription.GeneralShadingDesc = dlg.ResultGeneralShading; // renderContext.OutputDescription.AtomShadingDesc = dlg.ResultAtomShading; // renderContext.OutputDescription.BondShadingDesc = dlg.ResultBondShading; // renderContext.ApplyOutputDescription(renderContext.OutputDescription); // renderContext.Render(null); //} //dlg.Dispose(); MoleculeSchemeDlg dlg = new MoleculeSchemeDlg(settings, renderContext.OutputCaps, renderContext.Device, outputDesc); if (dlg.ShowDialog(this) == DialogResult.OK) { // pass on settings to context renderContext.ApplyOutputDescription(dlg.FinalCoDesc); renderContext.Render(null); } dlg.Dispose(); }