private void button2_Click(object sender, RoutedEventArgs e) { ServiceReference2.ApprovalServiceClient cli = new ServiceReference2.ApprovalServiceClient(); var ret = cli.startApprovalProcess("*****@*****.**", "hallo Günther " + Environment.NewLine + "Wie gehts?", "New Approval Process", new TimeSpan(0, 30, 0)); id = ret.WFID; activityID = ret.ActivityID; }
private void button3_Click(object sender, RoutedEventArgs e) { ServiceReference2.ApprovalServiceClient cli = new ServiceReference2.ApprovalServiceClient(); Boolean?b = cli.sendApprovalResponse(new ServiceReference2.WFIdentification() { WFID = id, ActivityID = activityID }, true, "Nota di Approvazione"); if (b.Value) { MessageBox.Show("Wow..."); } }