Example #1
0
        private void SetNoteContentFormCSFunc_Execute(object sender, Chromium.Remote.Event.CfrV8HandlerExecuteEventArgs e)
        {
            //var content = e.Arguments.FirstOrDefault(p => p.IsString);
            var array         = e.Arguments.ToArray();
            var noteID        = array.GetValue(0).ToString();
            var htmlContent   = array.GetValue(1).ToString();
            var contentLength = htmlContent.Length;

            noteUtils.SetNoteContent(Convert.ToInt32(noteID), htmlContent, Convert.ToInt32(contentLength));
        }