예제 #1
0
        private void KekuleJsEditorDialog_Shown(object sender, EventArgs e)
        {
            KekuleJsControl.SetMoleculeAndRender(MoleculeFormat.Molfile, OriginalMolfile);             // display original KekuleJs once dialog is shown

            return;
        }
예제 #2
0
        /// <summary>
        /// Return KekuleJs if valid
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        private void SaveButton_Click(object sender, EventArgs e)
        {
            EditedMolfile = KekuleJsControl.GetMolfile();
            // todo: validate KekuleJs
            DialogResult = DialogResult.OK;
        }