Commit 1dd4f59da04a58bc830d0a79f0cba7c91c0ddec8
1 parent
0b064473
Exists in
master
Incluindo função waitForReady()
Showing
2 changed files
with
12 additions
and
10 deletions
Show diff stats
src/pw3270-sharp/pw3270-sharp.cs
@@ -416,44 +416,44 @@ namespace pw3270 { | @@ -416,44 +416,44 @@ namespace pw3270 { | ||
416 | } | 416 | } |
417 | 417 | ||
418 | public int GetWidth() { | 418 | public int GetWidth() { |
419 | - return tn3270_get_width(hSession); | 419 | + return tn3270_get_width(hSession); |
420 | } | 420 | } |
421 | 421 | ||
422 | public int Width { | 422 | public int Width { |
423 | get { | 423 | get { |
424 | - return tn3270_get_width(hSession); | 424 | + return tn3270_get_width(hSession); |
425 | } | 425 | } |
426 | } | 426 | } |
427 | 427 | ||
428 | public int GetHeight() { | 428 | public int GetHeight() { |
429 | - return tn3270_get_height(hSession); | 429 | + return tn3270_get_height(hSession); |
430 | } | 430 | } |
431 | 431 | ||
432 | public int Height { | 432 | public int Height { |
433 | get { | 433 | get { |
434 | - return tn3270_get_height(hSession); | 434 | + return tn3270_get_height(hSession); |
435 | } | 435 | } |
436 | } | 436 | } |
437 | 437 | ||
438 | public int GetLength() { | 438 | public int GetLength() { |
439 | - return tn3270_get_length(hSession); | 439 | + return tn3270_get_length(hSession); |
440 | } | 440 | } |
441 | 441 | ||
442 | public int Length { | 442 | public int Length { |
443 | get { | 443 | get { |
444 | - return tn3270_get_length(hSession); | 444 | + return tn3270_get_length(hSession); |
445 | } | 445 | } |
446 | } | 446 | } |
447 | - | 447 | + |
448 | public string CharSet { | 448 | public string CharSet { |
449 | set { | 449 | set { |
450 | - tn3270_set_charset(hSession,value); | 450 | + tn3270_set_charset(hSession,value); |
451 | } | 451 | } |
452 | } | 452 | } |
453 | 453 | ||
454 | public string Url { | 454 | public string Url { |
455 | set { | 455 | set { |
456 | - tn3270_set_url(hSession,value); | 456 | + tn3270_set_url(hSession,value); |
457 | } | 457 | } |
458 | get { | 458 | get { |
459 | StringBuilder str = new StringBuilder(1025); | 459 | StringBuilder str = new StringBuilder(1025); |
@@ -461,7 +461,7 @@ namespace pw3270 { | @@ -461,7 +461,7 @@ namespace pw3270 { | ||
461 | return str.ToString(); | 461 | return str.ToString(); |
462 | } | 462 | } |
463 | } | 463 | } |
464 | - | 464 | + |
465 | } | 465 | } |
466 | 466 | ||
467 | } | 467 | } |
testprograms/sample.cs
@@ -44,6 +44,8 @@ class sample { | @@ -44,6 +44,8 @@ class sample { | ||
44 | 44 | ||
45 | System.Console.WriteLine("Connected to " + host.Url); | 45 | System.Console.WriteLine("Connected to " + host.Url); |
46 | 46 | ||
47 | + System.Console.WriteLine("Wait for ready returned " + host.WaitForReady(5)); | ||
48 | + | ||
47 | System.Console.WriteLine(host.GetStringAt(14,19,38)); | 49 | System.Console.WriteLine(host.GetStringAt(14,19,38)); |
48 | 50 | ||
49 | host.Disconnect(); | 51 | host.Disconnect(); |