Пример #1
0
        private void UpdateNote()
        {
            DomDocument document  = webView.MainFrameDocument;
            DomElement  paraBlock = document.GetElementById("main_content");

            GetActiveNoteObj().Text = paraBlock.InnerText;
            AppDelegate.NoteEngine.SaveNote(GetActiveNoteObj());
        }
Пример #2
0
        private void NewNote()
        {
            Note note = AppDelegate.NoteEngine.NewNote();

            note.Title            = "New Note";
            paraBlock             = document.GetElementById("main_content");
            paraBlock.TextContent = "Example Note";
            setTitle(note.Title);

            /* select the row that the new Note was added to.
             * In TableNotesDataSource we assume and add the new Note to index 0 in the notes arraylist
             */
            tblNotes.SelectRow(0, false);
            /* Set the new row to the viewable row */
            System.Drawing.PointF point = new System.Drawing.PointF(0, 0);
            notesScrollView.ScrollPoint(point);
            notesScrollView.ContentView.ScrollPoint(point);

            /* Example of programmically making element editable
             * ((DomHtmlElement)document.GetElementById("main_content")).
             */
        }