예제 #1
0
        public async void ShowDialog(string prCategoryName)
        {
            _Category = await ServiceClient.GetCategoryAsync(prCategoryName);

            UpdateDisplay();
            ShowDialog();
        }
예제 #2
0
        internal async static Task <string> DeleteCategoryAsync(clsCategory prCategory)
        {
            using (HttpClient lcHttpClient = new HttpClient())
            {
                HttpResponseMessage lcRespMessage = await lcHttpClient.DeleteAsync
                                                        ($"http://localhost:60064/api/Product/DeleteACategory?WorkName={prCategory.CategoryName}&ProductName={prCategory.CategoryName}");

                return(await lcRespMessage.Content.ReadAsStringAsync());
            }
        }
예제 #3
0
 internal async static Task <string> InsertCategoryAsync(clsCategory _Category)
 {
     return(await InsertOrUpdateAsync(_Category, "http://localhost:60064/api/Product/PostCategory", "POST"));
 }
예제 #4
0
 public void SetDetails(clsCategory prCategory)
 {
     _Category = prCategory;
     UpdateDisplay();
     Show();
 }
예제 #5
0
 public void SetDetails(clsCategory prCategory)
 {
     _Category = prCategory;
     updateForm();
     ShowDialog();
 }
예제 #6
0
        public async void refreshFormFromDB(string prCategoryName)
        {
            clsCategory lcCategory = await ServiceClient.GetCategoryAsync(prCategoryName);

            SetDetails(lcCategory);
        }
예제 #7
0
 internal async static Task <string> InsertCategoryAsync(clsCategory _Category)
 {
     return(await InsertOrUpdateAsync(_Category, "http://localhost:60000/api/gallery/PostArtWork", "POST"));
 }
 internal async static Task <string> UpdateCategoryAsync(clsCategory prCategory)
 {
     return(await InsertOrUpdateAsync(prCategory, "http://localhost:60064/api/inventory/PutCategory", "PUT"));
 }