Esempio n. 1
0
 private void textToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     using (TextInsertForm form = new TextInsertForm(editor.BodyHtml))
     {
         form.ShowDialog(this);
         if (form.Accepted)
         {
             editor.BodyHtml = form.HTML;
         }
     }
 }
Esempio n. 2
0
        private void textToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            var textData = "";
            switch (myenum)
            {
                case MyEnum.EnglishQuestion:
                    textData = editor.BodyHtml;
                    break;
                case MyEnum.EnglishOption1:
                    textData = editorEN1.BodyHtml;
                    break;
                case MyEnum.EnglishOption2:
                    textData = editorEN2.BodyHtml;
                    break;
                case MyEnum.EnglishOption3:
                    textData = editorEN3.BodyHtml;
                    break;
                case MyEnum.EnglishOption4:
                    textData = editorEN4.BodyHtml;
                    break;
                case MyEnum.HindiQuestion:
                    textData = editor1.BodyHtml;
                    break;
                case MyEnum.HindiOption1:
                    textData = editorHI1.BodyHtml;
                    break;
                case MyEnum.HindiOption2:
                    textData = editorHI2.BodyHtml;
                    break;
                case MyEnum.HindiOption3:
                    textData = editorHI3.BodyHtml;
                    break;
                case MyEnum.HindiOption4:
                    textData = editorHI4.BodyHtml;
                    break;
                default:
                    textData = editor.BodyHtml;
                    break;
            }
            using (TextInsertForm form = new TextInsertForm(textData))
            {
                form.ShowDialog(this);
                if (form.Accepted)
                {
                    switch (myenum)
                    {
                        case MyEnum.EnglishQuestion:
                            editor.BodyHtml = form.HTML;
                            break;
                        case MyEnum.EnglishOption1:
                            editorEN1.BodyHtml = form.HTML;
                            break;
                        case MyEnum.EnglishOption2:
                            editorEN2.BodyHtml = form.HTML;
                            break;
                        case MyEnum.EnglishOption3:
                            editorEN3.BodyHtml = form.HTML;
                            break;
                        case MyEnum.EnglishOption4:
                            editorEN4.BodyHtml = form.HTML;
                            break;
                        case MyEnum.HindiQuestion:
                            editor1.BodyHtml = form.HTML;
                            break;
                        case MyEnum.HindiOption1:
                            editorHI1.BodyHtml = form.HTML;
                            break;
                        case MyEnum.HindiOption2:
                            editorHI2.BodyHtml = form.HTML;
                            break;
                        case MyEnum.HindiOption3:
                            editorHI3.BodyHtml = form.HTML;
                            break;
                        case MyEnum.HindiOption4:
                            editorHI4.BodyHtml = form.HTML;
                            break;
                        default:
                            editor.BodyHtml = form.HTML;
                            break;
                    }

                }
            }
        }
Esempio n. 3
0
 private void textToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     using (TextInsertForm form = new TextInsertForm(editor.BodyHtml))
     {
         form.ShowDialog(this);
         if (form.Accepted)
         {
             editor.BodyHtml = form.HTML;
         }
     }
 }