private void btnCheckStatus_Click(object sender, EventArgs e) { _proxy = new GamingDebtServiceProxy("GamingDebtServiceEndpoint"); var status = _proxy.CheckCollectionStatus(new Guid(tbOrderId.Text)); tbStatusCheckResult.Text = $"{status.Status.ToString()}"; _proxy.Close(); }
private void btnCheckDebtor_Click(object sender, EventArgs e) { _proxy = new GamingDebtServiceProxy("GamingDebtServiceEndpoint"); var status = _proxy.CheckDebtorStatus(tbDebtorCheckServer.Text, tbDebtorCheckName.Text); tbDebtorCheckResult.Text = $"Jest w rejestrze? {(status.IsInRegistry ? "TAK" : "NIE")} | Wysokość zobowiązania: {status.DebtAmount}"; _proxy.Close(); }
private void OnSendOrderButtonClicked(object sender, EventArgs e) { _proxy = new GamingDebtServiceProxy("GamingDebtServiceEndpoint"); var orderId = _proxy.OrderCollection(new DebtDetails() { ClientName = tbClientName.Text, ClientRealm = tbServer.Text, DebtorName = tbDebtorName.Text, DebtorRealm = tbServer.Text, DebtAmount = nudDebtAmount.Value, DebtContextId = ((KeyValuePair <int, string>)cbDebtContexts.SelectedItem).Key }); tbOrderResult.Text = $"Wysłano! ID zgłoszenia: {orderId}"; _proxy.Close(); }