Exemplo n.º 1
0
        public async void ShowDialog(clsMyOrder prOrder)
        {
            _Order      = prOrder;
            _Instrument = await Admin.ServiceClient.GetInstrumentAsync(_Order.SerialNo);

            UpdateDisplay();
            ShowDialog();
        }
Exemplo n.º 2
0
        public void seeDetails()
        {
            clsMyOrder lcOrder = (clsMyOrder)lstOrder.SelectedItem;

            if (lcOrder != null)
            {
                FrmOrderDetails.Instance.ShowDialog(lcOrder);
            }
        }
Exemplo n.º 3
0
        internal static async Task <string> DeleteOrderAsync(clsMyOrder prOrder)
        {
            using (HttpClient lcHttpClient = new HttpClient())
            {
                HttpResponseMessage lcRespMessage = await lcHttpClient.DeleteAsync
                                                        ($"http://localhost:60065/api/shop/DeleteOrder?OrderID={prOrder.OrderID}");

                return(await lcRespMessage.Content.ReadAsStringAsync());
            }
        }