Esempio n. 1
0
        /* private async Task<string> DELETE(int id)
         * {
         *   using (HttpClient client = new HttpClient())
         *   {
         *       using (HttpResponseMessage res = await client.DeleteAsync("http://localhost:9090/api/platos/" + id))
         *       {
         *           using (HttpContent content = res.Content)
         *           {
         *               MessageBox.Show(res.StatusCode.ToString());
         *               string data = await content.ReadAsStringAsync();
         *               if (data != null)
         *               {
         *                   return data;
         *               }
         *           }
         *       }
         *
         *   }
         *   return string.Empty;
         * }
         *
         * /*private async void btnDelete_Click(object sender, EventArgs e)
         * {
         *   int id = Convert.ToInt32(txtID.Text);
         *   var responce = await DELETE(id);
         *   txtID.Text = RestHelperPlato.BeautifyJson(responce);
         * }*/


        private void txtVolver_Click(object sender, EventArgs e)
        {
            PedidoProveedor openPage02 = new PedidoProveedor();

            this.Hide();
            openPage02.ShowDialog();
            this.Close();
        }
Esempio n. 2
0
        public PedidoProveedor()
        {
            Instance = this;

            InitializeComponent();
        }