コード例 #1
0
 protected void ButtonCall_Click(object sender, EventArgs e)
 {
     if (TextBoxCallCount.Text != "")
     {
         TextBoxResult.Text = "";
         uint callCount;
         TextBoxResult.Text = UInt32.TryParse(TextBoxCallCount.Text, out callCount) ?
                              jediClient.SayHi(callCount, "") : "Invalid call count";
     }
 }
コード例 #2
0
 public string SayHi(uint greetingsCounter, string log)
 {
     if (greetingsCounter != 0)
     {
         log += "General Kenobi... (left: " + (greetingsCounter - 1) + " greets)\r\n";
         return(kenobi.SayHi(greetingsCounter - 1, log));
     }
     else
     {
         return(log);
     }
 }