private void SetNoteToFormCSFunc_Execute(object sender, Chromium.Remote.Event.CfrV8HandlerExecuteEventArgs e) { var noteTitle = e.Arguments.FirstOrDefault(p => p.IsString); string noteID = noteUtils.CreateTitle(noteTitle.ToString()); e.SetReturnValue(noteID); }