private void button1_Click(object sender, EventArgs e) { var a = new ApplicationWebService(); a.WebMethod2(button1.Text, x => button1.Text = x); MessageBox.Show("All done, Sir!"); }
private static void InternalTry() { try { Expression<Func<Book1Sheet1Row, bool>> where = //x => x.Foo == "xxx"; x => string.Equals(x.Foo, "xxx"); var w = new ApplicationWebService(); w.WebMethod2(); // X:\jsc.svn\core\ScriptCoreLib\JavaScript\DOM\CSS\CSSStyleSheet.cs //X:\jsc.svn\examples\java\JVMCLRIQueryable\JVMCLRIQueryable\bin\Release>JVMCLRIQueryable.exe //java.lang.Object, rt //error: { Target = class ScriptCoreLibJava.BCLImplementation.System.__String, MethodName = op_Equality } //error: { Parameter = class ScriptCoreLibJava.BCLImplementation.System.__String } //error: { Parameter = class ScriptCoreLibJava.BCLImplementation.System.__String } //error: { Method = java.lang.String Concat([Ljava.lang.Object;) } //error: { Method = java.lang.String Concat(java.lang.Object, java.lang.Object) } //error: { Method = java.lang.String Concat(java.lang.String, java.lang.String) } //error: { Method = java.lang.String Concat(java.lang.Object) } //error: { Method = java.lang.String Concat([Ljava.lang.String;) } //error: { Method = java.lang.String Concat(java.lang.Object, java.lang.Object, java.lang.Object) } //error: { Method = java.lang.String Concat(java.lang.String, java.lang.String, java.lang.String, java.lang.String) } //error: { Method = java.lang.String Concat(java.lang.String, java.lang.String, java.lang.String) } //error: { Method = java.lang.String Replace(java.lang.String, java.lang.String, java.lang.String) } //error: { Method = boolean op_Inequality(java.lang.String, java.lang.String) } //error: { Method = java.lang.String InternalConstructor(char, int) } //error: { Method = java.lang.String InternalConstructor([C) } //error: { Method = [Ljava.lang.String; SplitStringByChar(java.lang.String, char) } //error: { Method = boolean Equals_060002fb(java.lang.String, java.lang.String) } //error: { Method = [Ljava.lang.String; Split(java.lang.String, [Ljava.lang.String;, int) } //error: { Method = [Ljava.lang.String; Split(java.lang.String, [C) } //error: { Method = java.lang.String Substring(java.lang.String, int, int) } //error: { Method = boolean IsNullOrEmpty(java.lang.String) } //error: { Method = java.lang.String PadLeft(java.lang.String, int) } //error: { Method = java.lang.String PadLeft(java.lang.String, int, char) } //error: { Method = boolean Contains(java.lang.String, java.lang.String) } //error: { Method = [C ToCharArray(java.lang.String) } } catch (Exception ex) { Console.WriteLine( new { ex.Message, ex.StackTrace } ); } }
private static void InternalTry() { try { Expression <Func <Book1Sheet1Row, bool> > where = //x => x.Foo == "xxx"; x => string.Equals(x.Foo, "xxx"); var w = new ApplicationWebService(); w.WebMethod2(); // X:\jsc.svn\core\ScriptCoreLib\JavaScript\DOM\CSS\CSSStyleSheet.cs //X:\jsc.svn\examples\java\JVMCLRIQueryable\JVMCLRIQueryable\bin\Release>JVMCLRIQueryable.exe //java.lang.Object, rt //error: { Target = class ScriptCoreLibJava.BCLImplementation.System.__String, MethodName = op_Equality } //error: { Parameter = class ScriptCoreLibJava.BCLImplementation.System.__String } //error: { Parameter = class ScriptCoreLibJava.BCLImplementation.System.__String } //error: { Method = java.lang.String Concat([Ljava.lang.Object;) } //error: { Method = java.lang.String Concat(java.lang.Object, java.lang.Object) } //error: { Method = java.lang.String Concat(java.lang.String, java.lang.String) } //error: { Method = java.lang.String Concat(java.lang.Object) } //error: { Method = java.lang.String Concat([Ljava.lang.String;) } //error: { Method = java.lang.String Concat(java.lang.Object, java.lang.Object, java.lang.Object) } //error: { Method = java.lang.String Concat(java.lang.String, java.lang.String, java.lang.String, java.lang.String) } //error: { Method = java.lang.String Concat(java.lang.String, java.lang.String, java.lang.String) } //error: { Method = java.lang.String Replace(java.lang.String, java.lang.String, java.lang.String) } //error: { Method = boolean op_Inequality(java.lang.String, java.lang.String) } //error: { Method = java.lang.String InternalConstructor(char, int) } //error: { Method = java.lang.String InternalConstructor([C) } //error: { Method = [Ljava.lang.String; SplitStringByChar(java.lang.String, char) } //error: { Method = boolean Equals_060002fb(java.lang.String, java.lang.String) } //error: { Method = [Ljava.lang.String; Split(java.lang.String, [Ljava.lang.String;, int) } //error: { Method = [Ljava.lang.String; Split(java.lang.String, [C) } //error: { Method = java.lang.String Substring(java.lang.String, int, int) } //error: { Method = boolean IsNullOrEmpty(java.lang.String) } //error: { Method = java.lang.String PadLeft(java.lang.String, int) } //error: { Method = java.lang.String PadLeft(java.lang.String, int, char) } //error: { Method = boolean Contains(java.lang.String, java.lang.String) } //error: { Method = [C ToCharArray(java.lang.String) } } catch (Exception ex) { Console.WriteLine( new { ex.Message, ex.StackTrace } ); } }
/// <summary> /// This is a javascript application. /// </summary> /// <param name="page">HTML document rendered by the web server which can now be enhanced.</param> public Application(IDefaultPage page) { var caption_foreground = new IHTMLDiv(); caption_foreground.style.backgroundColor = JSColor.Red; caption_foreground.style.SetLocation(100, 100, 100, 100); caption_foreground.AttachToDocument(); var drag = new ScriptCoreLib.JavaScript.Controls.DragHelper(caption_foreground); drag.Position = new Point(100, 100); // http://forum.mootools.net/topic.php?id=534 // disable text selection // look at http://forkjavascript.com/ drag.Enabled = true; drag.DragStart += delegate { caption_foreground.style.backgroundColor = JSColor.Yellow; }; drag.DragMove += delegate { caption_foreground.style.backgroundColor = JSColor.Green; caption_foreground.style.SetLocation(drag.Position.X, drag.Position.Y); }; drag.DragStop += delegate { caption_foreground.style.backgroundColor = JSColor.Blue; }; @"Hello world".ToDocumentTitle(); // Send data from JavaScript to the server tier service.WebMethod2( @"A string from JavaScript.", value => value.ToDocumentTitle() ); }