예제 #1
0
        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();
        }
예제 #2
0
        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();
        }
예제 #3
0
        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();
        }